no-explicit-any 등록

This commit is contained in:
2023-08-06 14:27:30 +00:00
parent 31fa264160
commit 4b6d48850e
6 changed files with 30 additions and 3 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import { Router } from 'express';
import type { APIExecuter, APINamespace } from './defs.js';
import type { AnyAPIExecuter, APINamespace } from './defs.js';
export function buildAPISystem<N extends APINamespace, Q extends APIExecuter<any, any, any>>(api: N | Q): Router {
export function buildAPISystem<N extends APINamespace, Q extends AnyAPIExecuter>(api: N | Q): Router {
const router = Router();
for (const [key, value] of Object.entries(api)) {
if (typeof value === 'function') {