1.0.9 • Published 6 years ago

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

Weekly downloads
1
License
MIT
Repository
github
Last release
6 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

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago