From f8dff83d4b4f441eb4375730e89a744b2a155ad6 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Fri, 19 Oct 2018 18:07:21 +0100 Subject: [PATCH] docs: update platform-server to use `@publicApi` tags (#26595) PR Close #26595 --- packages/platform-server/src/version.ts | 3 +++ packages/platform-webworker-dynamic/src/version.ts | 3 +++ packages/platform-webworker/src/version.ts | 3 +++ .../platform-server/platform-server.d.ts | 10 ---------- tools/public_api_guard/platform-server/testing.d.ts | 2 -- 5 files changed, 9 insertions(+), 12 deletions(-) diff --git a/packages/platform-server/src/version.ts b/packages/platform-server/src/version.ts index af66f0fa27..9469ebe5e5 100644 --- a/packages/platform-server/src/version.ts +++ b/packages/platform-server/src/version.ts @@ -14,4 +14,7 @@ import {Version} from '@angular/core'; +/** + * @publicApi + */ export const VERSION = new Version('0.0.0-PLACEHOLDER'); diff --git a/packages/platform-webworker-dynamic/src/version.ts b/packages/platform-webworker-dynamic/src/version.ts index af66f0fa27..9469ebe5e5 100644 --- a/packages/platform-webworker-dynamic/src/version.ts +++ b/packages/platform-webworker-dynamic/src/version.ts @@ -14,4 +14,7 @@ import {Version} from '@angular/core'; +/** + * @publicApi + */ export const VERSION = new Version('0.0.0-PLACEHOLDER'); diff --git a/packages/platform-webworker/src/version.ts b/packages/platform-webworker/src/version.ts index af66f0fa27..9469ebe5e5 100644 --- a/packages/platform-webworker/src/version.ts +++ b/packages/platform-webworker/src/version.ts @@ -14,4 +14,7 @@ import {Version} from '@angular/core'; +/** + * @publicApi + */ export const VERSION = new Version('0.0.0-PLACEHOLDER'); diff --git a/tools/public_api_guard/platform-server/platform-server.d.ts b/tools/public_api_guard/platform-server/platform-server.d.ts index 26505af030..d81559ba50 100644 --- a/tools/public_api_guard/platform-server/platform-server.d.ts +++ b/tools/public_api_guard/platform-server/platform-server.d.ts @@ -1,47 +1,37 @@ -/** @experimental */ export declare const BEFORE_APP_SERIALIZED: InjectionToken<(() => void)[]>; -/** @experimental */ export declare const INITIAL_CONFIG: InjectionToken; -/** @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(module: Type, options: { document?: string; url?: string; extraProviders?: StaticProvider[]; }): Promise; -/** @experimental */ export declare function renderModuleFactory(moduleFactory: NgModuleFactory, options: { document?: string; url?: string; extraProviders?: StaticProvider[]; }): Promise; -/** @experimental */ export declare class ServerModule { } -/** @experimental */ export declare class ServerTransferStateModule { } diff --git a/tools/public_api_guard/platform-server/testing.d.ts b/tools/public_api_guard/platform-server/testing.d.ts index faafa085ea..4caf9966d2 100644 --- a/tools/public_api_guard/platform-server/testing.d.ts +++ b/tools/public_api_guard/platform-server/testing.d.ts @@ -1,6 +1,4 @@ -/** @experimental */ export declare const platformServerTesting: (extraProviders?: StaticProvider[] | undefined) => PlatformRef; -/** @experimental */ export declare class ServerTestingModule { }