UNPKG

@trapi/metadata

Version:

Generate REST-API metadata scheme from TypeScript Decorators.

7 lines 615 B
import type { DecoratorID } from '../constants'; import type { DecoratorPropertyValueSchema } from './type'; export type DecoratorSwaggerTagsProperties = DecoratorPropertyValueSchema<string[]>; export type DecoratorClassPathProperties = DecoratorPropertyValueSchema<string>; export type DecoratorClassSetID = `${DecoratorID.TAGS}` | `${DecoratorID.CONTROLLER}`; export type DecoratorClassSetProperties<T extends DecoratorClassSetID> = T extends `${DecoratorID.TAGS}` ? DecoratorSwaggerTagsProperties : T extends `${DecoratorID.CONTROLLER}` ? DecoratorClassPathProperties : never; //# sourceMappingURL=class.d.ts.map