1.3.1 • Published 5 years ago

js-yaml-type-ts v1.3.1

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

js-yaml-type-ts

Use it like this:

import {
  createIncludeType,
  createModuleType,
  createFunctionType,
} from 'js-yaml-type-ts'

const schema = new yaml.Schema({
  include: [yaml.DEFAULT_SAFE_SCHEMA],
  explicit: [createIncludeType(), createModuleType(), createFunctionType()],
})
const tsModule = yaml.load(
  `
customInclude: !!ts/include "fixtures/include.tsx"
customModule: !!ts/module |
  export default {
    boolean: true,
    func: () => true,
    asyncFunc: async () => true,
  }
customFunction: !!ts/function |
  export default () => {
    return true
  }
`,
  { schema }
)
1.3.1

5 years ago

1.3.0

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.0

5 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago