asl-types is a TypeScript types module that makes it easier to create AWS Step Functions JSON (Amazon States Language).
sh
npm install asl-types --save
```ts import * as asl from 'asl-types'
const sm: asl.StateMachine = { ... }
...
const stepFunctionJson = JSON.stringify(sm) ```
This module does very little! It generates TypeScript definitions using the following great projects.
asl-types
makes some minor modifications to the JSON Schema to get the best results currently possible. See convert.ts for details.
Choice
states, are not as strict as we would like. This relates to an issue in json-schema-to-typescript
(#96). Contributions to address this issue are really welcome. This could be a resolution to that issue or an alternative solution in asl-types
. See the issue description for details and possible workarounds.Copyright (c) 2019 fourTheorem Ltd.