UNPKG

denwa-nest-shared

Version:

Shared NestJS module for DTO validation, RBAC, TypeORM query building, and OpenAPI client

5 lines (4 loc) • 323 B
export type MethodType = "get" | "post" | "patch" | "put" | "delete" | "head" | "options"; export declare const METHODS_WITH_BODY: readonly ["post", "patch", "put"]; export type MethodTypeWithBody = (typeof METHODS_WITH_BODY)[number]; export declare function isMethodWithBody(method: string): method is MethodTypeWithBody;