Skip to content

ms-ecology/json2ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json2ts

A script running on myshell, make json into typescript defination.

Usage

ms add json2ts # add script into myshell

Examples

# simple case
ms j2t '{}'
# ts module with name
ms j2t '{ "name": 1 }' People
# complex case
ms j2t '{ a: 1, b: [true], c: [{n: 1}, { n: "", b: 2}, { n: 2, c: true }] }'
# write define into file
ms j2t '{ a: 1, b: [true], c: [{n: 1}, { n: "", b: 2}, { n: 2, c: true }] }' > Test.d.ts

About

make json into typescript define

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published