-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Laura Chan
committed
Jun 3, 2023
1 parent
a066003
commit 3c8c2a0
Showing
3 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,23 @@ | ||
# make-a-type README | ||
# make-a-type | ||
|
||
https://marketplace.visualstudio.com/items?itemName=lwkchan.make-a-type | ||
This extension is available on the [VSCode Marketplace](https://marketplace.visualstudio.com/items?itemName=lwkchan.make-a-type). | ||
|
||
I made this because the other available extensions which convert JS to TS either required you to use a JSON object or they created a separate TS file. This extension does not require you to use JSON and captures the TS type in your clipboard so that you can paste it anywhere you want. | ||
|
||
## Features | ||
|
||
- Highlight a JS Object, and get a TypeScript interface in your clipboard | ||
|
||
 | ||
|
||
## Requirements | ||
|
||
- VS Code 1.44 or higher | ||
|
||
## Usage | ||
|
||
1. Highlight your JS object | ||
2. Open command pallette (`Ctrl/Cmd-Shift-P`) | ||
3. Search for "Make JS Object into TS Type: clipboard" | ||
4. Select option | ||
5. TS type is now in your clipboard, now paste it wherever you want to |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters