Skip to content

Commit

Permalink
feat(manual_typings): add angular 1 override module typings to work w…
Browse files Browse the repository at this point in the history
…ith ...provide()
  • Loading branch information
Hotell committed Jan 11, 2016
1 parent b21be30 commit 5a58ce3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions manual_typings/globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,15 @@ interface BrowserNodeGlobal {
}

declare type StringMap = {[key:string]:string};
declare type Type = Function;
declare type ProvideSpreadType = string|Type;

declare module angular {
interface IModule {
// constant(object: Object): IModule;
// value(object: Object): IModule;
directive(...args: ProvideSpreadType[]): IModule;
filter(...args: ProvideSpreadType[]): IModule;
service(...args: ProvideSpreadType[]): IModule;
}
}

0 comments on commit 5a58ce3

Please sign in to comment.