forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmicrogears.d.ts
33 lines (28 loc) · 908 Bytes
/
microgears.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Type definitions for microgears v4.0.0
// Project: http://github.com/marcusdb/microgears
// Definitions by: Marcus David Bronstein <https://github.com/marcusdb>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace microgears {
export interface Service {
name: string;
async?: boolean;
pathname?: string;
namespace: string;
}
interface MetaInformation {
serviceName: string;
methodName: string;
serviceNameSpace: string;
extra: any;
}
interface Plugin {
name: string;
beforeChain(arguments: Array<any>, metaInfo: MetaInformation): Array<any>;
afterChain<T>(result: T, metaInfo: MetaInformation): T;
}
function addService(service: Service): Service;
function addPlugin(plugin: Plugin): void;
}
declare module "microgears" {
export = microgears;
}