Skip to content

Commit 16c19fd

Browse files
LedragonSamVerschueren
authored andcommitted
add bundle d.ts - resolves #1
1 parent bf0e70f commit 16c19fd

File tree

6 files changed

+298
-24
lines changed

6 files changed

+298
-24
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ typings
77
**/*.d.ts
88
!gulpfile.js
99
!angular2-polyfill/bundles/**/*.js
10+
!angular2-polyfill/bundles/**/*.d.ts
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,241 @@
1+
declare module "angular2-polyfill/src/core/interfaces/ComponentMetadata" {
2+
export interface ComponentMetadata {
3+
selector?: string;
4+
inputs?: string[];
5+
outputs?: string[];
6+
host?: {
7+
[key: string]: string;
8+
};
9+
exportAs?: string;
10+
template?: string;
11+
templateUrl?: string;
12+
styles?: string[];
13+
styleUrls?: string[];
14+
directives?: any[];
15+
providers?: any[];
16+
pipes?: any[];
17+
}
18+
}
19+
declare module "angular2-polyfill/src/utils" {
20+
/**
21+
* Helper functions
22+
*/
23+
export function annotate(target: any, key: any, value: any): void;
24+
}
25+
declare module "angular2-polyfill/src/core/decorators/Component" {
26+
import { ComponentMetadata } from "angular2-polyfill/src/core/interfaces/ComponentMetadata";
27+
export function Component(component: ComponentMetadata): (target: any) => void;
28+
}
29+
declare module "angular2-polyfill/src/core/interfaces/DirectiveMetadata" {
30+
export interface DirectiveMetadata {
31+
selector?: string;
32+
inputs?: string[];
33+
outputs?: string[];
34+
host?: {
35+
[key: string]: string;
36+
};
37+
providers?: any[];
38+
}
39+
}
40+
declare module "angular2-polyfill/src/core/decorators/Directive" {
41+
import { DirectiveMetadata } from "angular2-polyfill/src/core/interfaces/DirectiveMetadata";
42+
export function Directive(options: DirectiveMetadata): (target: any) => void;
43+
}
44+
declare module "angular2-polyfill/src/core/decorators/Inject" {
45+
export function Inject(token: any): (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
46+
}
47+
declare module "angular2-polyfill/src/core/decorators/Injectable" {
48+
export function Injectable(): (target: any) => void;
49+
}
50+
declare module "angular2-polyfill/src/core/decorators/Input" {
51+
export function Input(bindingPropertyName?: string): (target: any, propertyKey: string) => void;
52+
}
53+
declare module "angular2-polyfill/src/core/decorators/Output" {
54+
export function Output(bindingPropertyName?: string): (target: any, propertyKey: string) => void;
55+
}
56+
declare module "angular2-polyfill/src/core/interfaces/PipeMetadata" {
57+
export interface PipeMetadata {
58+
name: string;
59+
pure?: boolean;
60+
}
61+
}
62+
declare module "angular2-polyfill/src/core/decorators/Pipe" {
63+
import { PipeMetadata } from "angular2-polyfill/src/core/interfaces/PipeMetadata";
64+
export function Pipe(pipe: PipeMetadata): (target: any) => void;
65+
}
66+
declare module "angular2-polyfill/src/core/interfaces/OnInit" {
67+
export interface OnInit {
68+
ngOnInit(): void;
69+
}
70+
}
71+
declare module "angular2-polyfill/src/core/interfaces/OnDestroy" {
72+
export interface OnDestroy {
73+
ngOnDestroy(): void;
74+
}
75+
}
76+
declare module "angular2-polyfill/src/core/interfaces/PipeTransform" {
77+
export interface PipeTransform {
78+
transform(value: any, args: any[]): any;
79+
}
80+
}
81+
declare module "angular2-polyfill/src/core/core" {
82+
export { Component } from "angular2-polyfill/src/core/decorators/Component";
83+
export { Directive } from "angular2-polyfill/src/core/decorators/Directive";
84+
export { Inject } from "angular2-polyfill/src/core/decorators/Inject";
85+
export { Injectable } from "angular2-polyfill/src/core/decorators/Injectable";
86+
export { Input } from "angular2-polyfill/src/core/decorators/Input";
87+
export { Output } from "angular2-polyfill/src/core/decorators/Output";
88+
export { Pipe } from "angular2-polyfill/src/core/decorators/Pipe";
89+
export { OnInit } from "angular2-polyfill/src/core/interfaces/OnInit";
90+
export { OnDestroy } from "angular2-polyfill/src/core/interfaces/OnDestroy";
91+
export { PipeTransform } from "angular2-polyfill/src/core/interfaces/PipeTransform";
92+
}
93+
declare module "angular2-polyfill/core" {
94+
export * from "angular2-polyfill/src/core/core";
95+
}
96+
declare module "angular2-polyfill/src/http/interfaces/RequestOptionsArgs" {
97+
export interface RequestOptionsArgs {
98+
params?: string | any;
99+
data?: string | any;
100+
headers?: any;
101+
xsrfHeaderName?: string;
102+
xsrfCookieName?: string;
103+
transformRequest?: Function | Function[];
104+
transformResponse?: Function | Function[];
105+
paramSerializer?: string | Function;
106+
cache?: boolean | any;
107+
timeout?: number | Promise<any>;
108+
withCredentials?: boolean;
109+
responseType?: string;
110+
}
111+
}
112+
declare module "angular2-polyfill/src/http/interfaces/Response" {
113+
import { RequestOptionsArgs } from "angular2-polyfill/src/http/interfaces/RequestOptionsArgs";
114+
export interface Response {
115+
data: string | any;
116+
status: number;
117+
headers: Function;
118+
config: RequestOptionsArgs;
119+
statusText: string;
120+
}
121+
}
122+
declare module "angular2-polyfill/src/http/http.service" {
123+
import { RequestOptionsArgs } from "angular2-polyfill/src/http/interfaces/RequestOptionsArgs";
124+
import { Response } from "angular2-polyfill/src/http/interfaces/Response";
125+
export class Http {
126+
private http;
127+
constructor(http: any);
128+
get(url: string, options?: RequestOptionsArgs): Promise<Response>;
129+
post(url: string, body: any, options?: RequestOptionsArgs): Promise<Response>;
130+
put(url: string, body: any, options?: RequestOptionsArgs): Promise<Response>;
131+
delete(url: string, options?: RequestOptionsArgs): Promise<Response>;
132+
patch(url: string, body: any, options?: RequestOptionsArgs): Promise<Response>;
133+
head(url: string, options?: RequestOptionsArgs): Promise<Response>;
134+
}
135+
}
136+
declare module "angular2-polyfill/src/http/providers" {
137+
import { Http } from "angular2-polyfill/src/http/http.service";
138+
export const HTTP_PROVIDERS: typeof Http[];
139+
}
140+
declare module "angular2-polyfill/http" {
141+
export { Http } from "angular2-polyfill/src/http/http.service";
142+
export { HTTP_PROVIDERS } from "angular2-polyfill/src/http/providers";
143+
}
144+
declare module "angular2-polyfill/src/router/instruction" {
145+
export class RouteParams {
146+
private stateParams;
147+
constructor(stateParams: any);
148+
get(param: string): string;
149+
}
150+
export class Instruction {
151+
_state: string;
152+
urlPath: string;
153+
urlParams: string;
154+
}
155+
}
156+
declare module "angular2-polyfill/src/router/router" {
157+
import { Instruction } from "angular2-polyfill/src/router/instruction";
158+
export class Router {
159+
private state;
160+
constructor(state: any);
161+
isRouteActive(instruction: Instruction): boolean;
162+
navigate(linkParams: any[]): Promise<any>;
163+
renavigate(): Promise<any>;
164+
generate(linkParams: any[]): Promise<Instruction>;
165+
}
166+
}
167+
declare module "angular2-polyfill/src/router/interfaces" {
168+
export interface RouteDefinition {
169+
path?: string;
170+
component?: any;
171+
as?: string;
172+
name?: string;
173+
useAsDefault?: boolean;
174+
}
175+
}
176+
declare module "angular2-polyfill/src/router/decorators/RouteConfig" {
177+
import { RouteDefinition } from "angular2-polyfill/src/router/interfaces";
178+
export function RouteConfig(routes: RouteDefinition[]): (target: any) => void;
179+
}
180+
declare module "angular2-polyfill/src/router/lifecycle/lifecycle_annotations" {
181+
import { Instruction } from "angular2-polyfill/src/router/instruction";
182+
export function CanActivate(hook: Function | ((next: Instruction, prev: Instruction) => Promise<boolean> | boolean)): (target: any) => void;
183+
export interface CanActivate {
184+
routerCanActivate(next: Instruction, prev: Instruction): Promise<boolean> | boolean;
185+
}
186+
}
187+
declare module "angular2-polyfill/src/router/providers" {
188+
import { Router } from "angular2-polyfill/src/router/router";
189+
import { RouteParams } from "angular2-polyfill/src/router/instruction";
190+
export const ROUTER_PROVIDERS: (typeof Router | typeof RouteParams)[];
191+
}
192+
declare module "angular2-polyfill/router" {
193+
export { Router } from "angular2-polyfill/src/router/router";
194+
export { RouteParams } from "angular2-polyfill/src/router/instruction";
195+
export { Instruction } from "angular2-polyfill/src/router/instruction";
196+
export { RouteConfig } from "angular2-polyfill/src/router/decorators/RouteConfig";
197+
export { CanActivate } from "angular2-polyfill/src/router/lifecycle/lifecycle_annotations";
198+
export * from "angular2-polyfill/src/router/interfaces";
199+
export { ROUTER_PROVIDERS } from "angular2-polyfill/src/router/providers";
200+
}
201+
declare module "angular2-polyfill/platform/browser" {
202+
export function bootstrap(base: any): void;
203+
}
204+
declare module "angular2-polyfill/src/platform/bootstrap/core" {
205+
export function bootstrap(ngModule: any, component: any): void;
206+
}
207+
declare module "angular2-polyfill/src/platform/bootstrap/component" {
208+
export function bootstrap(ngModule: any, target: any, parentState?: any): string;
209+
}
210+
declare module "angular2-polyfill/src/platform/bootstrap/directive" {
211+
export function bootstrap(ngModule: any, target: any): void;
212+
}
213+
declare module "angular2-polyfill/src/platform/bootstrap/pipe" {
214+
export function bootstrap(ngModule: any, target: any): any;
215+
}
216+
declare module "angular2-polyfill/src/platform/bootstrap/injectable" {
217+
export function bootstrap(ngModule: any, target: any): any;
218+
}
219+
declare module "angular2-polyfill/src/platform/bootstrap/utils" {
220+
export function inject(target: any): void;
221+
export function bindInput(target: any, directive: any): void;
222+
export function bindOutput(target: any, directive: any): void;
223+
export function parseHosts(hostBindings: {
224+
string: string;
225+
}[]): {
226+
attrs: {};
227+
events: {};
228+
props: {
229+
raw: {};
230+
expressions: {};
231+
};
232+
};
233+
export function bindHostBindings(scope: any, el: angular.IRootElementService, hostBindings: any, controllerAs?: string): void;
234+
export function bootstrapHelper(ngModule: any, target: any): any;
235+
}
236+
declare module "angular2-polyfill/src/platform/upgrade" {
237+
export function bootstrap(ngModule: any, component: any, providers?: any[]): void;
238+
}
239+
declare module "angular2-polyfill/platform/upgrade" {
240+
export { bootstrap } from "angular2-polyfill/src/platform/upgrade";
241+
}

angular2-polyfill/bundles/angular2-polyfill.js

+45-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

angular2-polyfill/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"experimentalDecorators": true
99
},
1010
"exclude": [
11+
"bundles",
1112
"typings/browser",
1213
"typings/browser.d.ts"
1314
]

0 commit comments

Comments
 (0)