api-typescript-generator / Modules / index
- ApiTypescriptGeneratorConfig
- CommonOpenApiClientGeneratorConfig
- CommonOpenApiClientGeneratorConfigDocument
- CommonOpenApiClientGeneratorConfigDocumentPatch
- FilenameFormat
- JsDocBlock
- JsDocBlockTag
- CommonApiToTypescriptGeneratorSource
- EntityNameCase
- OpenApiDocumentPatchAllSchemas
- OpenApiDocumentPatchDocument
- OpenApiDocumentPatchOperation
- OpenApiDocumentPatchPathItem
- OpenApiDocumentPatchSchema
- OpenApiDocumentPatchTags
- OpenApiSchemaFieldPathItem
Ƭ CommonApiToTypescriptGeneratorSource: { path: string ; type: "file" } | { type: "url" ; url: string } | { object: unknown ; type: "object" } | { data: string ; type: "string" }
Source of the API to generate TypeScript types from. Can be a file or a URL. Supports both YAML and JSON.
Ƭ EntityNameCase: "kebabCase" | "camelCase" | "snakeCase" | "pascalCase"
Ƭ OpenApiDocumentPatchAllSchemas: (schemas: { [schemaName: string]: OpenApiSchema; }) => { [schemaName: string]: OpenApiSchema; } | Promise<{ [schemaName: string]: OpenApiSchema; }>
▸ (schemas): { [schemaName: string]: OpenApiSchema; } | Promise<{ [schemaName: string]: OpenApiSchema; }>
Callback to patch all schemas.
| Name | Type | Description |
|---|---|---|
schemas |
Object |
The schemas to patch. |
{ [schemaName: string]: OpenApiSchema; } | Promise<{ [schemaName: string]: OpenApiSchema; }>
Ƭ OpenApiDocumentPatchDocument: (document: OpenApiDocument) => OpenApiDocument | Promise<OpenApiDocument>
▸ (document): OpenApiDocument | Promise<OpenApiDocument>
Callback to patch the whole OpenAPI document. Applies after all other patches.
| Name | Type | Description |
|---|---|---|
document |
OpenApiDocument |
The OpenAPI document to patch. |
OpenApiDocument | Promise<OpenApiDocument>
Ƭ OpenApiDocumentPatchOperation: (operation: OpenApiOperation, path: string, httpMethod: OpenApiHttpMethod) => OpenApiOperation | Promise<OpenApiOperation>
▸ (operation, path, httpMethod): OpenApiOperation | Promise<OpenApiOperation>
Callback to patch an operation.
| Name | Type | Description |
|---|---|---|
operation |
OpenApiOperation |
The operation to patch. |
path |
string |
The path of the operation. |
httpMethod |
OpenApiHttpMethod |
- |
OpenApiOperation | Promise<OpenApiOperation>
Ƭ OpenApiDocumentPatchPathItem: (pathItem: OpenApiPathItem, path: string) => OpenApiPathItem | Promise<OpenApiPathItem>
▸ (pathItem, path): OpenApiPathItem | Promise<OpenApiPathItem>
Callback to patch a path item.
| Name | Type | Description |
|---|---|---|
pathItem |
OpenApiPathItem |
The path item to patch. |
path |
string |
The path of the path item. |
OpenApiPathItem | Promise<OpenApiPathItem>
Ƭ OpenApiDocumentPatchSchema: (schema: OpenApiSchema, schemaName: string) => OpenApiSchema | Promise<OpenApiSchema>
▸ (schema, schemaName): OpenApiSchema | Promise<OpenApiSchema>
Callback to patch a schema.
| Name | Type | Description |
|---|---|---|
schema |
OpenApiSchema |
The schema to patch. |
schemaName |
string |
The name of the schema. |
OpenApiSchema | Promise<OpenApiSchema>
Ƭ OpenApiDocumentPatchTags: (tags: OpenApiTag[]) => OpenApiTag[] | Promise<OpenApiTag[]>
▸ (tags): OpenApiTag[] | Promise<OpenApiTag[]>
Callback to patch tags.
| Name | Type | Description |
|---|---|---|
tags |
OpenApiTag[] |
The tags to patch. |
OpenApiTag[] | Promise<OpenApiTag[]>
Ƭ OpenApiSchemaFieldPathItem: string | typeof stringIndexSignature
Path item used to reference a path to a field in the schema.
• Const stringIndexSignature: typeof stringIndexSignature