typesType aliases and enums derived from the constraints already in your document.
Types
export default {
...,
generators: [
{
preset: 'types',
outputPath: './src/types',
language: 'typescript',
}
]
};
types preset is for generating simple types and utility functions that change based on the AsyncAPI document.
This is supported through the following inputs: asyncapi and openapi
It supports the following languages; typescript