Translate json object to ts interface
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
Usage:
Select JSON object text and right click, after context menu shows, click \"Copy as TS interface\".
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