AsyncAPI Conf on Tour 2023

Madrid Edition

October, 2023 | Madrid, Spain

5 days until the end for Call for Speakers.

TypeScript support

Found an error? Have a suggestion?Edit this page on GitHub

The AsyncAPI generator has TypeScript support for hooks and Nunjucks's filters. Assumptions:

  • Installing the typescript package and creating the tsconfig.json file isn't necessary.
  • Source code of the hook/filter must have .ts extension.
  • Each package related to the typings for TypeScript like @types/node must be installed in the template under dependencies array. This is because the Generator transpiles the TypeScript code on-the-fly while rendering the template, and cannot use packages under devDependencies.
  • Each template should have @types/node package installed to enable support for typings for Node.
Was this helpful?
Help us improve the docs by adding your contribution.
OR
Github:AsyncAPICreate Issue on GitHub