Translate json object to ts interface

Latest Version

Version
1.2
Update
June 20, 2022
Size
41.89KiB
Developer
Category
Users
120
Rating
5 ★
Manifest Version
3
Web Store Status
Languages Support
English (United States)
See more
Permissions
ActiveTab
Scripting
ContextMenus
See more

TS Helper Extension

TypeScript is a great programming language, but it takes a lot of time to write the type's declaration, especially when describing the content returned by REST-API. The extension can convert a JSON object into a typescript interface definition.

Usage:
Select JSON object text and right click, after context menu shows, click \"Copy as TS interface\".
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "TS Helper", "description": "Translate json object to ts interface", "version": "1.2", "manifest_version": 3, "background": { "service_worker": "background.js", "type": "module" }, "permissions": ["activeTab", "scripting", "contextMenus"], "action": { "default_icon": { "48": "/images/harmmer48.png", "72": "/images/harmmer72.png", "96": "/images/harmmer96.png", "144": "/images/harmmer144.png", "192": "/images/harmmer192.png" } }, "icons": { "48": "/images/harmmer48.png", "72": "/images/harmmer72.png", "96": "/images/harmmer96.png", "144": "/images/harmmer144.png", "192": "/images/harmmer192.png" }}
Read more