@hanseltime/compose-types
v1.1.0
Published
Docker compose specification converted into a typescript type for type-checking
Downloads
4
Readme
Typescript definitions for docker compose
Simple package that exposes the v3 compose specification as transformed by json-schema-to-typescript.
Basic Usage:
import { v3 } from '@hanseltime/compose-types'
const spec: v3.ComposeSpecification = {
services: [
// your services, etc.
]
}Usage with custom x- prefixed properties:
import { v3 } from '@hanseltime/compose-types'
type CustomKeys = 'foo' | 'bar'
const spec: v3.ComposeSpecification<CustomKeys> = {
services: [
{
'x-bar': 'someValue',
}
],
'x-foo': 'anotherValue',
}