UNPKG

@tsed/schema

Version:
11 lines (10 loc) 557 B
import { Type } from "@tsed/core"; import { OperationVerbs } from "../constants/OperationVerbs.js"; import { JsonMethodStore } from "../domain/JsonMethodStore.js"; import { JsonOperationRoute } from "../domain/JsonOperationRoute.js"; export interface GetOperationsRoutesOptions { withChildren?: boolean; basePath?: string; allowedVerbs?: OperationVerbs[]; } export declare function getOperationsRoutes<Entity extends JsonMethodStore = JsonMethodStore>(token: Type<any> | any, options?: GetOperationsRoutesOptions): JsonOperationRoute<Entity>[];