question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create TS Interface for Commands

See original GitHub issue

Commands could be refactored into a single export, rather than multiple exports.

Let that single export be typed as a CommandInt interface, and have it be an object with the properties triggers, usage, description, command. This will make typing the commands with TS more strict and remove errors which access the commands (such as the help feature).

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
naomi-lgbtcommented, Feb 4, 2021

Err, I’m fairly certain this is still needed.

0reactions
github-actions[bot]commented, Apr 7, 2021

Stale issue message

Read more comments on GitHub >

github_iconTop Results From Across the Web

User Interface Typescript Commands - Analytica Wiki
The typescript commands described here can be used from the Typescript window or from a button script to manipulate the user interface.
Read more >
Creating a CLI with TypeScript - RJ Zaworski
Creating a CLI with TypeScript ... Here's scaffolding for a command-line interface with two commands, echo and help : #!/usr/bin/env ts-node ...
Read more >
Use Interface Props in Functional Components ... - Pluralsight
Open your terminal and run these commands to get a sample TypeScript app running on your machine. 1npx create-react-app my-app --template ...
Read more >
How To Create Your Own TypeScript CLI — With Node.js
In this guide will we make a small pizza CLI in TypeScript with Node.js. ... commander — Make node.js command-line interfaces easy; path...
Read more >
CLI to generate TypeScript interfaces from source files. - GitHub
GitHub - justinlettau/ts-generate: CLI to generate TypeScript interfaces ... Clone the repo and run the following commands in the ts-generate directory:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found