Tsconfig & admin.d.ts

This commit is contained in:
Alexandre Bodin 2023-09-05 22:51:46 +02:00
parent fcce8e8842
commit ecb5c6717c
3 changed files with 15 additions and 2 deletions

10
packages/core/strapi/admin.d.ts vendored Normal file
View File

@ -0,0 +1,10 @@
declare module '@strapi/admin';
declare module 'koa-favicon' {
import type Koa from 'koa';
export default function favicon(
path: string,
options?: { maxAge?: number; mime?: string }
): Koa.Middleware;
}

View File

@ -3,6 +3,6 @@
"compilerOptions": {
"noEmit": true
},
"include": ["src"],
"include": ["src", "admin.d.ts"],
"exclude": ["node_modules"]
}

View File

@ -1,5 +1,8 @@
{
"extends": "tsconfig/base.json",
"include": ["src"],
"compilerOptions": {
"noEmit": true
},
"include": ["src", "admin.d.ts"],
"exclude": ["node_modules"]
}