parent
533ebe960f
commit
c4e0c67e34
35 changed files with 1329 additions and 111 deletions
src
12
src/types.ts
12
src/types.ts
|
@ -1,3 +1,11 @@
|
|||
type Optional<T> = T | null | undefined;
|
||||
import { Request, Response } from 'express';
|
||||
|
||||
export { Optional };
|
||||
import { AuthInfo } from './auth';
|
||||
|
||||
type Optional<T> = T | null | undefined;
|
||||
type RequestHandler = (req: Request, res: Response) => Promise<AuthInfo>;
|
||||
|
||||
export {
|
||||
Optional,
|
||||
RequestHandler,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue