chore: fix bundle problem in admin-next

pull/90/head
moonrailgun 2 years ago
parent 5d9707df56
commit 98cf631165

@ -1,7 +1,7 @@
import { RequestHandler, Router } from 'express'; import { RequestHandler, Router } from 'express';
import { LeanDocument } from 'mongoose'; import type { LeanDocument } from 'mongoose';
import statusMessages from './statusMessages'; import statusMessages from './statusMessages';
import { ADPBaseModel, ADPBaseSchema } from './utils/baseModel.interface'; import type { ADPBaseModel, ADPBaseSchema } from './utils/baseModel.interface';
import castFilter from './utils/castFilter'; import castFilter from './utils/castFilter';
import convertId from './utils/convertId'; import convertId from './utils/convertId';
import filterGetList from './utils/filterGetList'; import filterGetList from './utils/filterGetList';

@ -3,7 +3,7 @@
* @description handles status messages / error responses * @description handles status messages / error responses
*/ */
import { Response } from 'express'; import type { Response } from 'express';
/** /**
* Handles rejections other than errors. 400, 401, etc. * Handles rejections other than errors. 400, 401, etc.

@ -1,4 +1,4 @@
import { Model, Document } from 'mongoose'; import type { Model, Document } from 'mongoose';
export interface ADPBaseSchema { export interface ADPBaseSchema {
_id: string; _id: string;

@ -1,4 +1,4 @@
import { ADPBaseModel } from './baseModel.interface'; import type { ADPBaseModel } from './baseModel.interface';
/** /**
* Turns all the params into their proper types, string into regexes. * Turns all the params into their proper types, string into regexes.

@ -1,4 +1,4 @@
import { ADPBaseModel } from './baseModel.interface'; import type { ADPBaseModel } from './baseModel.interface';
import castFilter from './castFilter'; import castFilter from './castFilter';
interface parseQueryParam { interface parseQueryParam {

@ -12,6 +12,7 @@
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
"jsx": "react-jsx", "jsx": "react-jsx",
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"importsNotUsedAsValues": "error",
"module": "CommonJS", "module": "CommonJS",
"moduleResolution": "Node", "moduleResolution": "Node",
"resolveJsonModule": true, "resolveJsonModule": true,

Loading…
Cancel
Save