Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 2.73 KB

README.md

File metadata and controls

52 lines (39 loc) · 2.73 KB

gOAst (@goast/typescript)

@goast/typescript NPM Version @goast/typescript JSR Version

gOAst stands for generative Open API specification transformer, a tool designed to transform OpenAPI specifications into various forms with flexibility and extensibility at its core.

For more Information, please visit the gOAst GitHub Repository.

Purpose 👍

The @goast/typescript package provides generators for TypeScript code generation from OpenAPI specifications.

Usage Example 🚀

import { OpenApiGenerator } from '@goast/core';
import { TypeScriptFetchClientsGenerator, TypeScriptModelsGenerator } from '@goast/typescript';

async function main() {
  await new OpenApiGenerator({ outputDir: '.api' })
    .useType(TypeScriptModelsGenerator)
    .useType(TypeScriptFetchClientsGenerator)
    .parseAndGenerateFromDir('.openapi');
}

main();

Available Generators 📚

API Documentation 📖

The API documentation can be found here.