feat: 添加 ESLint 配置并优化代码风格,移除未使用的功能

This commit is contained in:
Elysia
2026-02-12 18:31:09 +08:00
parent b43c6117ec
commit e11740ad4c
14 changed files with 65 additions and 114 deletions

View File

@@ -7,7 +7,7 @@ import pino from "pino";
const logger = pino({ 'name': 'deeplink.ts' });
type Query = Record<string, string>;
export type Listener = (query: Query) => any;
export type Listener = (query: Query) => void;
class ListenersMap {
private map: Map<string, Set<Listener>> = new Map();