add methods

This commit is contained in:
2026-01-30 17:26:03 +08:00
parent cb29e2ca67
commit 1eadacfc29

View File

@@ -1,4 +1,4 @@
export const methods = ['GET', 'POST'] as const;
export const methods = ['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS', 'HEAD'] as const;
export type Method = (typeof methods)[number];
type SimpleObject = Record<string, any>;