chore: add typescript shims

shims added for `mongoose-sequence`, `blueimp-md5`, and `bcryptjs`
This commit is contained in:
parent adaef6d274
commit cc462bc19a
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C
4 changed files with 37 additions and 0 deletions

2
typings/blueimp-md5.ts Normal file

@ -0,0 +1,2 @@
declare module "blueimp-md5"
declare module "bcryptjs"

20
typings/express.d.ts vendored Normal file

@ -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
}
}
}

1
typings/mongoose-sequence.d.ts vendored Normal file

@ -0,0 +1 @@
declare module 'mongoose-sequence';

14
typings/next.d.ts vendored Normal file

@ -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;
}
}