mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
geoip: use context.service
This commit is contained in:
1 parent
63c9c00d1d
commit
d94e3e650a
6 files changed
+65
-64
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user