docs(platform-server): inline PlatformOptions and add doc strings (#18264)

Fix documentation for the options passed into renderModule and
renderModuleFactory.

PR Close #18264
This commit is contained in:
Vikram Subramanian
2017-07-20 14:30:35 -07:00
committed by Miško Hevery
parent 3ca2a0aa37
commit bcf6b90c95
2 changed files with 25 additions and 23 deletions

View File

@ -21,10 +21,18 @@ export declare class PlatformState {
}
/** @experimental */
export declare function renderModule<T>(module: Type<T>, options: PlatformOptions): Promise<string>;
export declare function renderModule<T>(module: Type<T>, options: {
document?: string;
url?: string;
extraProviders?: Provider[];
}): Promise<string>;
/** @experimental */
export declare function renderModuleFactory<T>(moduleFactory: NgModuleFactory<T>, options: PlatformOptions): Promise<string>;
export declare function renderModuleFactory<T>(moduleFactory: NgModuleFactory<T>, options: {
document?: string;
url?: string;
extraProviders?: Provider[];
}): Promise<string>;
/** @experimental */
export declare class ServerModule {