diff --git a/src/method.ts b/src/method.ts index 8d0edfe80..83ff789d9 100644 --- a/src/method.ts +++ b/src/method.ts @@ -1,3 +1,13 @@ -export type Method = "get" | "post" | "put" | "delete" | "patch"; -export const methods: Method[] = ["get", "post", "put", "delete", "patch"]; -export type AuxMethod = "options"; +import type { IRouter } from "express"; + +export const methods = [ + "get", + "post", + "put", + "delete", + "patch", +] satisfies Array; + +export type Method = (typeof methods)[number]; + +export type AuxMethod = Extract;