fix(typing): declare modules for untyped dependencies
This commit is contained in:
parent
0000533540
commit
d7eb7eaec8
3
typings/blueimp-md5.d.ts
vendored
Normal file
3
typings/blueimp-md5.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
declare module "blueimp-md5";
|
||||||
|
declare module "bcryptjs";
|
||||||
|
export {};
|
@ -1,2 +1,2 @@
|
|||||||
declare module "blueimp-md5"
|
declare module "blueimp-md5";
|
||||||
declare module "bcryptjs"
|
declare module "bcryptjs";
|
||||||
|
6
typings/express.d.ts
vendored
6
typings/express.d.ts
vendored
@ -1,12 +1,12 @@
|
|||||||
import { Document } from "mongoose";
|
import { Document } from "mongoose";
|
||||||
import { IStory } from "~/models/stories";
|
import { IStory } from "~/models/stories";
|
||||||
import { IUser } from "~/models/user";
|
import { IUser } from "~/models/user";
|
||||||
import {Request} from "express"
|
import { Request } from "express";
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
declare namespace Express {
|
declare namespace Express {
|
||||||
interface Request {
|
interface Request {
|
||||||
newStory?: IStory,
|
newStory?: IStory;
|
||||||
user?: IUser;
|
user?: IUser;
|
||||||
files: any;
|
files: any;
|
||||||
AddID?: string | number;
|
AddID?: string | number;
|
||||||
@ -14,7 +14,7 @@ declare global {
|
|||||||
cidx?: number;
|
cidx?: number;
|
||||||
}
|
}
|
||||||
interface User {
|
interface User {
|
||||||
[key: string]: any
|
[key: string]: any;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
10
typings/h3.d.ts
vendored
Normal file
10
typings/h3.d.ts
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import type { H3Event, H3EventContext } from "h3";
|
||||||
|
import { IFicmas } from "~/models/challenges/ficmas";
|
||||||
|
import { IUser } from "~/models/user";
|
||||||
|
declare module "h3" {
|
||||||
|
interface H3EventContext {
|
||||||
|
currentUser?: IUser;
|
||||||
|
ficmasarray_raw?: IFicmas[];
|
||||||
|
chapterIndex: number;
|
||||||
|
}
|
||||||
|
}
|
2
typings/mongoose-sequence.d.ts
vendored
2
typings/mongoose-sequence.d.ts
vendored
@ -1 +1 @@
|
|||||||
declare module 'mongoose-sequence';
|
declare module "mongoose-sequence";
|
||||||
|
28
typings/next.d.ts
vendored
28
typings/next.d.ts
vendored
@ -1,14 +1,14 @@
|
|||||||
import { Document } from "mongoose";
|
import { Document } from "mongoose";
|
||||||
import { IStory } from "~/models/stories";
|
import { IStory } from "~/models/stories";
|
||||||
import { IUser } from "~/models/user";
|
import { IUser } from "~/models/user";
|
||||||
|
|
||||||
declare module "next" {
|
declare module "next" {
|
||||||
export interface NextApiRequest {
|
export interface NextApiRequest {
|
||||||
newStory?: IStory,
|
newStory?: IStory;
|
||||||
user?: IUser;
|
user?: IUser;
|
||||||
files: any;
|
files: any;
|
||||||
AddID?: string | number;
|
AddID?: string | number;
|
||||||
readStory?: IStory;
|
readStory?: IStory;
|
||||||
cidx?: number;
|
cidx?: number;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
1
typings/san.d.ts
vendored
Normal file
1
typings/san.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
declare module "sanitize-html";
|
Loading…
Reference in New Issue
Block a user