小编付延伟*_*付延伟的帖子

模块扩充中不允许导出和导出分配

import { Request as ExpressRequest, Response as ExpressResponse } from 'express';
declare module 'kvl' {
    export = kvl;
}
declare const kvl: {
    ValidationDone:(param:(error: any, response: ExpressResponse) => void) => void;
}
Run Code Online (Sandbox Code Playgroud)

模块扩充中不允许导出和导出分配。

我是在 .d.ts 中声明的?我不能这样用吗?

express typescript

4
推荐指数
1
解决办法
4176
查看次数

标签 统计

express ×1

typescript ×1