geoip: use context.service

This commit is contained in:
undefined committed 2022-10-04 23:54:25 +08:00
1 parent 63c9c00d1d
commit d94e3e650a
6 files changed
+65 -64

No files matched your search

+2 -1
View File
@@ -1,6 +1,6 @@
import * as cordis from 'cordis';
import Schema from 'schemastery';
import { ModuleInterfaces } from './interface';
import { GeoIP, ModuleInterfaces } from './interface';
import { inject } from './lib/ui';
import { Loader } from './loader';
import { EventMap } from './service/bus';
@@ -33,6 +33,7 @@ export interface Context {
inject: typeof inject;
api: ApiMixin;
broadcast: Context['emit'];
geoip?: GeoIP;
}
export class Context extends cordis.Context {