forked from barbatus/angular2-meteor-universal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.ts
More file actions
37 lines (30 loc) · 799 Bytes
/
bootstrap.ts
File metadata and controls
37 lines (30 loc) · 799 Bytes
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
34
35
36
37
'use strict';
import {Type, ComponentRef} from '@angular/core';
import {Providers} from 'angular2-meteor';
export interface ClientOptions {
debug?: boolean;
}
export interface Preboot {
start?: boolean;
freeze?: string;
replay?: string;
buffer?: boolean;
uglify?: boolean;
listen?: any;
presets?: string[];
}
export interface ServerOptions {
debug?: boolean;
// Turn on/off server rendering
on?: boolean;
renderLimitMs?: number;
pageSizeLimitKb?: number;
preboot?: Preboot;
}
export interface UniOptions {
client?: ClientOptions;
server?: ServerOptions;
}
export declare function bootstrap(component: Type,
providers ?: Providers,
options ?: UniOptions): Promise<string | ComponentRef<any>>;