jsonToTypescript
$0.01/invocation
Convert any JSON value into readable TypeScript type definitions. Nested objects become named interfaces, arrays infer element types, and non-identifier keys are quoted. Null fields are typed as null from a single sample (multi-sample merging is not supported yet).
jsonToTypescript(
)
=
loading...
API


python

Ruby
>_

Google Sheets
Chat
Email
To use this function in your Ruby application:
1. Install it:
gem install func_live
2. Copy over this snippet:
FuncLive.token = 'FUNC_TOKEN'
FuncLive.("jsonToTypescript", {
"user": {
"id": 1,
"email": "a@b.com"
},
"tags": [
"typescript",
"json"
]
})
3. Make sure to replace FUNC_TOKEN with an actual token from tokens.wakeflow.io
For more information: https://rubygems.org/gems/func_live