1.0.9 • Published 7 years ago

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

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

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago