feat: add support for TS 2.3

This commit is contained in:
Victor Berchet
2017-04-14 17:13:10 -07:00
committed by Tobias Bosch
parent 3c8a61e40c
commit 014594fe8f
4 changed files with 17 additions and 14 deletions

View File

@ -10,6 +10,18 @@ import {Injectable, RenderComponentType, RendererType2, Type, ɵstringify as str
import {RenderStore} from './render_store';
/**
* @experimental WebWorker support in Angular is currently experimental.
*/
export const enum SerializerTypes {
// RendererType2
RENDERER_TYPE_2,
// Primitive types
PRIMITIVE,
// An object stored in a RenderStore
RENDER_STORE_OBJECT,
}
/**
* Any type that does not need to be serialized (string, number, boolean)
*
@ -25,18 +37,6 @@ export class LocationType {
public origin: string) {}
}
/**
* @experimental WebWorker support in Angular is currently experimental.
*/
export const enum SerializerTypes {
// RendererType2
RENDERER_TYPE_2,
// Primitive types
PRIMITIVE,
// An object stored in a RenderStore
RENDER_STORE_OBJECT,
}
@Injectable()
export class Serializer {
constructor(private _renderStore: RenderStore) {}