Skip to content

Instantly share code, notes, and snippets.

@okunokentaro
Last active August 29, 2015 14:21
Show Gist options
  • Save okunokentaro/3e47319baf0555bc32ae to your computer and use it in GitHub Desktop.
Save okunokentaro/3e47319baf0555bc32ae to your computer and use it in GitHub Desktop.
angular2.d.ts 自分用
declare module "angular2/angular2" {
export function Directive(arg: any);
export function Component(arg: any);
export function View(arg: any);
export function bootstrap(...args: any[]);
export function bind(...args: any[]): any;
export function onChange(...args: any[]): any;
export class PropertyUpdate{}
export class NgFor{}
export class Pipe{}
export class PipeRegistry{
constructor(_: any);
}
export class ViewContainerRef{
get(idn: number): any;
element: {
domElement: HTMLElement;
};
}
export class ChangeDetectorRef{
detach(): void;
reattach(): void;
requestCheck(): void;
}
}
declare module "angular2/change_detection" {
export var defaultPipes: any;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment