summaryrefslogtreecommitdiff
path: root/cli/tsc/dts/lib.es5.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tsc/dts/lib.es5.d.ts')
-rw-r--r--cli/tsc/dts/lib.es5.d.ts10
1 files changed, 3 insertions, 7 deletions
diff --git a/cli/tsc/dts/lib.es5.d.ts b/cli/tsc/dts/lib.es5.d.ts
index 01610d97f..e1fc0f445 100644
--- a/cli/tsc/dts/lib.es5.d.ts
+++ b/cli/tsc/dts/lib.es5.d.ts
@@ -14,9 +14,10 @@ and limitations under the License.
***************************************************************************** */
-
/// <reference no-default-lib="true"/>
+/// <reference lib="decorators" />
+/// <reference lib="decorators.legacy" />
/////////////////////////////
/// ECMAScript APIs
@@ -761,7 +762,7 @@ interface Date {
toLocaleTimeString(): string;
/** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
valueOf(): number;
- /** Gets the time value in milliseconds. */
+ /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
getTime(): number;
/** Gets the year, using local time. */
getFullYear(): number;
@@ -1503,11 +1504,6 @@ interface TypedPropertyDescriptor<T> {
set?: (value: T) => void;
}
-declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
-declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
-declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
-declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;
-
declare type PromiseConstructorLike = new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;
interface PromiseLike<T> {