Skip to content

Commit

Permalink
docs: update platform-server to use @publicApi tags (#26595)
Browse files Browse the repository at this point in the history
PR Close #26595
  • Loading branch information
petebacondarwin authored and Alex Rickabaugh committed Oct 19, 2018
1 parent f1e3d51 commit 7570f72
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
3 changes: 3 additions & 0 deletions packages/platform-server/src/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@

import {Version} from '@angular/core';

/**
* @publicApi
*/
export const VERSION = new Version('0.0.0-PLACEHOLDER');
3 changes: 3 additions & 0 deletions packages/platform-webworker-dynamic/src/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@

import {Version} from '@angular/core';

/**
* @publicApi
*/
export const VERSION = new Version('0.0.0-PLACEHOLDER');
3 changes: 3 additions & 0 deletions packages/platform-webworker/src/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@

import {Version} from '@angular/core';

/**
* @publicApi
*/
export const VERSION = new Version('0.0.0-PLACEHOLDER');
10 changes: 0 additions & 10 deletions tools/public_api_guard/platform-server/platform-server.d.ts
Original file line number Diff line number Diff line change
@@ -1,47 +1,37 @@
/** @experimental */
export declare const BEFORE_APP_SERIALIZED: InjectionToken<(() => void)[]>;

/** @experimental */
export declare const INITIAL_CONFIG: InjectionToken<PlatformConfig>;

/** @experimental */
export interface PlatformConfig {
document?: string;
url?: string;
}

/** @experimental */
export declare const platformDynamicServer: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;

/** @experimental */
export declare const platformServer: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;

/** @experimental */
export declare class PlatformState {
constructor(_doc: any);
getDocument(): any;
renderToString(): string;
}

/** @experimental */
export declare function renderModule<T>(module: Type<T>, options: {
document?: string;
url?: string;
extraProviders?: StaticProvider[];
}): Promise<string>;

/** @experimental */
export declare function renderModuleFactory<T>(moduleFactory: NgModuleFactory<T>, options: {
document?: string;
url?: string;
extraProviders?: StaticProvider[];
}): Promise<string>;

/** @experimental */
export declare class ServerModule {
}

/** @experimental */
export declare class ServerTransferStateModule {
}

Expand Down
2 changes: 0 additions & 2 deletions tools/public_api_guard/platform-server/testing.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/** @experimental */
export declare const platformServerTesting: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;

/** @experimental */
export declare class ServerTestingModule {
}

0 comments on commit 7570f72

Please sign in to comment.