naystack
Version:
A stack built with tight Next + Drizzle + GraphQL
22 lines (19 loc) • 408 B
text/typescript
import { NextResponse } from 'next/server';
type ErrorHandler = (error: {
status: number;
message: string;
}) => NextResponse;
type UserInput = {
email: string;
password: string;
} & {
[key: string]: unknown;
};
type UserOutput = {
id: number;
email: string;
password: string | null;
} & {
[key: string]: unknown;
};
export type { ErrorHandler, UserInput, UserOutput };