Compile lier to typescript typings
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, {})
CompilerOptions {
/** default is space */
intentType?: 'tab' | 'space'
/** default is 4 */
intentSize?: number
/** default is true */
strictGenerate?: boolean
}
MIT