Skip to content

GaryChangCN/lier2typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

把 lier 编译到 typescript typing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published