diff --git a/typings/blueimp-md5.ts b/typings/blueimp-md5.ts new file mode 100644 index 0000000..a9aa6f8 --- /dev/null +++ b/typings/blueimp-md5.ts @@ -0,0 +1,2 @@ +declare module "blueimp-md5" +declare module "bcryptjs" \ No newline at end of file diff --git a/typings/express.d.ts b/typings/express.d.ts new file mode 100644 index 0000000..a5c1b14 --- /dev/null +++ b/typings/express.d.ts @@ -0,0 +1,20 @@ +import { Document } from "mongoose"; +import { IStory } from "~/models/stories"; +import { IUser } from "~/models/user"; +import {Request} from "express" + +declare global { + declare namespace Express { + interface Request { + newStory?: IStory, + user?: IUser; + files: any; + AddID?: string | number; + readStory?: IStory; + cidx?: number; + } + interface User { + [key: string]: any + } + } +} diff --git a/typings/mongoose-sequence.d.ts b/typings/mongoose-sequence.d.ts new file mode 100644 index 0000000..a4b0710 --- /dev/null +++ b/typings/mongoose-sequence.d.ts @@ -0,0 +1 @@ +declare module 'mongoose-sequence'; \ No newline at end of file diff --git a/typings/next.d.ts b/typings/next.d.ts new file mode 100644 index 0000000..a8b30bf --- /dev/null +++ b/typings/next.d.ts @@ -0,0 +1,14 @@ +import { Document } from "mongoose"; +import { IStory } from "~/models/stories"; +import { IUser } from "~/models/user"; + +declare module "next" { + export interface NextApiRequest { + newStory?: IStory, + user?: IUser; + files: any; + AddID?: string | number; + readStory?: IStory; + cidx?: number; + } +} \ No newline at end of file