mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
refactor: 🚨 Turn every linter rule on and fix issues (there were a LOT :3)
This commit is contained in:
parent
2e98859153
commit
a1e02d0d78
177 changed files with 1826 additions and 1248 deletions
|
|
@ -4,7 +4,7 @@ import type { z } from "zod";
|
|||
import type { RolePermissions } from "~/drizzle/schema";
|
||||
|
||||
export type HttpVerb = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS";
|
||||
export interface APIRouteMetadata {
|
||||
export interface ApiRouteMetadata {
|
||||
allowedMethods: HttpVerb[];
|
||||
ratelimits: {
|
||||
max: number;
|
||||
|
|
@ -19,13 +19,13 @@ export interface APIRouteMetadata {
|
|||
permissions?: {
|
||||
required: RolePermissions[];
|
||||
methodOverrides?: {
|
||||
[key in HttpVerb]?: RolePermissions[];
|
||||
[Key in HttpVerb]?: RolePermissions[];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
export interface APIRouteExports {
|
||||
meta: APIRouteMetadata;
|
||||
export interface ApiRouteExports {
|
||||
meta: ApiRouteMetadata;
|
||||
schemas?: {
|
||||
query?: z.AnyZodObject;
|
||||
body?: z.AnyZodObject;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue