-
-
Notifications
You must be signed in to change notification settings - Fork 594
Closed
Description
For example, it generates
export interface paths {
'/download/{p1}': {
// ...
},
}
export enum ApiPaths {
getDownload: '/download/:p1',
}So I can't choose type:
type X = paths[ApiPaths.getDownload] // errorAs I see, that is why paths in export interface paths { and export enum ApiPaths { are different:
https://github.com/drwpow/openapi-typescript/blob/a4e05fa005277ea1e42eb191921aae5d9f51293a/src/transform/paths.ts#L127-L128
@berzi hi! Could you answer if this change is needed?
alexey-kozlenkov
Metadata
Metadata
Assignees
Labels
No labels