
Product
Introducing Immutable Scans
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.
@goast/typescript
Advanced tools
Provides gOAst generators for generating TypeScript code from OpenAPI specifications.
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.
The @goast/typescript package provides generators for TypeScript code generation
from OpenAPI specifications.
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();
TypeScriptModelsGenerator: Generates
TypeScript interfaces or types from schemas in the OpenAPI specification(s).TypeScriptFetchClientsGenerator:
Generates Fetch clients for TypeScript from paths in the OpenAPI specification(s).
TypeScriptModelsGenerator generator.TypeScriptAngularServicesGenerator:
Generates Angular services from paths in the OpenAPI specification(s).
TypeScriptModelsGenerator generator.TypeScriptEasyNetworkStubsGenerator:
Generates easy-network-stub classes from paths in the OpenAPI
specification(s).
TypeScriptModelsGenerator generator.TypeScriptK6ClientsGenerator:
Generates k6 clients from paths in the OpenAPI specification(s).
TypeScriptModelsGenerator generator.The API documentation can be found here.
FAQs
Provides gOAst generators for generating TypeScript code from OpenAPI specifications.
The npm package @goast/typescript receives a total of 414 weekly downloads. As such, @goast/typescript popularity was classified as not popular.
We found that @goast/typescript demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.