bug fixes

This commit is contained in:
undefined committed 2025-03-17 07:48:40 +08:00
1 parent 3c65c27911
commit 80d2137cbb
6 files changed
+19 -25

No files matched your search

+5 -5
View File
@@ -7,13 +7,13 @@ import { Context, Service } from '../context';
import { PERM, PRIV } from '../model/builtin';
import { Handler } from './server';
const types: Record<string, Record<string, string>> = {};
const unions: Record<string, string> = {};
const descriptions: Record<string, Record<string, string>> = {};
const types: Record<string, Record<string, string>> = Object.create(null);
const unions: Record<string, string> = Object.create(null);
const descriptions: Record<string, Record<string, string>> = Object.create(null);
const handlers: Record<string, Record<string, any>> = {
Query: {},
Query: Object.create(null),
};
let root: Record<string, any> = {};
let root: Record<string, any> = Object.create(null);
interface ApiContext extends ApiHandler {
[key: string]: any;