1.0.9 • Published 5 years ago

js-yaml-type-ts-module v1.0.9

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

js-yaml-type-ts-module

Use it like this:

import createTSModuleType from 'js-yaml-type-ts-module'

const type = createTSModuleType()
const schema = new yaml.Schema({
  include: [yaml.DEFAULT_SAFE_SCHEMA],
  explicit: [type],
})
const parsed = yaml.load(
  `
customModule: !!ts/module |
  export default {
    boolean: true,
    func: () => true,
    asyncFunc: async () => true,
  }
`,
  { schema }
)
1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago