lier2ts
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

lier2typescript

Compile lier to typescript typings

USAGE

npm i lier2ts
import * as lier2ts from 'lier2ts'
// or const lier2ts = require('lier2ts')
 
 
const lierStr = `
{
    a: int
    b: {
        a: str[]
    }
}
`
 
const result = lier2ts.convert(lierStr, {})
 

Options

CompilerOptions {
    /** default is space */
    intentType?: 'tab' | 'space'
    /** default is 4 */
    intentSize?: number
    /** default is true */
    strictGenerate?: boolean
}

LICENSE

MIT

Readme

Keywords

Package Sidebar

Install

npm i lier2ts

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

17.5 kB

Total Files

10

Last publish

Collaborators

  • garychang