Skip to content

Update LKG #2332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 13, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions bin/lib.core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,19 +179,19 @@ interface ObjectConstructor {
* Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
seal(o: any): any;
seal<T>(o: T): T;

/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
freeze(o: any): any;
freeze<T>(o: T): T;

/**
* Prevents the addition of new properties to an object.
* @param o Object to make non-extensible.
*/
preventExtensions(o: any): any;
preventExtensions<T>(o: T): T;

/**
* Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
Expand Down Expand Up @@ -425,6 +425,9 @@ interface String {
*/
substr(from: number, length?: number): string;

/** Returns the primitive value of the specified object. */
valueOf(): string;

[index: number]: string;
}

Expand Down Expand Up @@ -477,6 +480,9 @@ interface Number {
* @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
*/
toPrecision(precision?: number): string;

/** Returns the primitive value of the specified object. */
valueOf(): number;
}

interface NumberConstructor {
Expand Down
12 changes: 9 additions & 3 deletions bin/lib.core.es6.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,19 +179,19 @@ interface ObjectConstructor {
* Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
seal(o: any): any;
seal<T>(o: T): T;

/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
freeze(o: any): any;
freeze<T>(o: T): T;

/**
* Prevents the addition of new properties to an object.
* @param o Object to make non-extensible.
*/
preventExtensions(o: any): any;
preventExtensions<T>(o: T): T;

/**
* Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
Expand Down Expand Up @@ -425,6 +425,9 @@ interface String {
*/
substr(from: number, length?: number): string;

/** Returns the primitive value of the specified object. */
valueOf(): string;

[index: number]: string;
}

Expand Down Expand Up @@ -477,6 +480,9 @@ interface Number {
* @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
*/
toPrecision(precision?: number): string;

/** Returns the primitive value of the specified object. */
valueOf(): number;
}

interface NumberConstructor {
Expand Down
12 changes: 9 additions & 3 deletions bin/lib.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,19 +179,19 @@ interface ObjectConstructor {
* Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
seal(o: any): any;
seal<T>(o: T): T;

/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
freeze(o: any): any;
freeze<T>(o: T): T;

/**
* Prevents the addition of new properties to an object.
* @param o Object to make non-extensible.
*/
preventExtensions(o: any): any;
preventExtensions<T>(o: T): T;

/**
* Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
Expand Down Expand Up @@ -425,6 +425,9 @@ interface String {
*/
substr(from: number, length?: number): string;

/** Returns the primitive value of the specified object. */
valueOf(): string;

[index: number]: string;
}

Expand Down Expand Up @@ -477,6 +480,9 @@ interface Number {
* @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
*/
toPrecision(precision?: number): string;

/** Returns the primitive value of the specified object. */
valueOf(): number;
}

interface NumberConstructor {
Expand Down
12 changes: 9 additions & 3 deletions bin/lib.es6.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,19 +179,19 @@ interface ObjectConstructor {
* Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
seal(o: any): any;
seal<T>(o: T): T;

/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
freeze(o: any): any;
freeze<T>(o: T): T;

/**
* Prevents the addition of new properties to an object.
* @param o Object to make non-extensible.
*/
preventExtensions(o: any): any;
preventExtensions<T>(o: T): T;

/**
* Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
Expand Down Expand Up @@ -425,6 +425,9 @@ interface String {
*/
substr(from: number, length?: number): string;

/** Returns the primitive value of the specified object. */
valueOf(): string;

[index: number]: string;
}

Expand Down Expand Up @@ -477,6 +480,9 @@ interface Number {
* @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
*/
toPrecision(precision?: number): string;

/** Returns the primitive value of the specified object. */
valueOf(): number;
}

interface NumberConstructor {
Expand Down
Loading