Skip to content

Commit

Permalink
Update LKG
Browse files Browse the repository at this point in the history
  • Loading branch information
typescript-bot committed Nov 2, 2020
1 parent 8d249ea commit abf4b63
Show file tree
Hide file tree
Showing 27 changed files with 50,141 additions and 43,274 deletions.
31 changes: 20 additions & 11 deletions lib/cs/diagnosticMessages.generated.json

Large diffs are not rendered by default.

31 changes: 20 additions & 11 deletions lib/de/diagnosticMessages.generated.json

Large diffs are not rendered by default.

39 changes: 24 additions & 15 deletions lib/es/diagnosticMessages.generated.json

Large diffs are not rendered by default.

35 changes: 22 additions & 13 deletions lib/fr/diagnosticMessages.generated.json

Large diffs are not rendered by default.

31 changes: 20 additions & 11 deletions lib/it/diagnosticMessages.generated.json

Large diffs are not rendered by default.

39 changes: 24 additions & 15 deletions lib/ja/diagnosticMessages.generated.json

Large diffs are not rendered by default.

31 changes: 20 additions & 11 deletions lib/ko/diagnosticMessages.generated.json

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions lib/lib.es2017.sharedmemory.d.ts
Expand Up @@ -27,10 +27,6 @@ interface SharedArrayBuffer {
*/
readonly byteLength: number;

/*
* The SharedArrayBuffer constructor's length property whose value is 1.
*/
length: number;
/**
* Returns a section of an SharedArrayBuffer.
*/
Expand Down
23 changes: 22 additions & 1 deletion lib/lib.es5.d.ts
Expand Up @@ -1067,7 +1067,7 @@ interface JSON {
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.
* @param replacer An array of strings and numbers that acts as a approved list for selecting the object properties that will be stringified.
* @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
*/
stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
Expand Down Expand Up @@ -1528,6 +1528,26 @@ type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => i
*/
type InstanceType<T extends new (...args: any) => any> = T extends new (...args: any) => infer R ? R : any;

/**
* Convert string literal type to uppercase
*/
type Uppercase<S extends string> = intrinsic;

/**
* Convert string literal type to lowercase
*/
type Lowercase<S extends string> = intrinsic;

/**
* Convert first character of string literal type to uppercase
*/
type Capitalize<S extends string> = intrinsic;

/**
* Convert first character of string literal type to lowercase
*/
type Uncapitalize<S extends string> = intrinsic;

/**
* Marker for contextual 'this' type
*/
Expand Down Expand Up @@ -4284,6 +4304,7 @@ declare namespace Intl {
style?: string;
currency?: string;
currencyDisplay?: string;
currencySign?: string;
useGrouping?: boolean;
minimumIntegerDigits?: number;
minimumFractionDigits?: number;
Expand Down
1 change: 1 addition & 0 deletions lib/lib.esnext.d.ts
Expand Up @@ -22,3 +22,4 @@ and limitations under the License.
/// <reference lib="esnext.intl" />
/// <reference lib="esnext.string" />
/// <reference lib="esnext.promise" />
/// <reference lib="esnext.weakref" />
75 changes: 75 additions & 0 deletions lib/lib.esnext.weakref.d.ts
@@ -0,0 +1,75 @@
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */



/// <reference no-default-lib="true"/>


interface WeakRef<T extends object> {
readonly [Symbol.toStringTag]: "WeakRef";

/**
* Returns the WeakRef instance's target object, or undefined if the target object has been
* reclaimed.
*/
deref(): T | undefined;
}

interface WeakRefConstructor {
readonly prototype: WeakRef<any>;

/**
* Creates a WeakRef instance for the given target object.
* @param target The target object for the WeakRef instance.
*/
new<T extends object>(target?: T): WeakRef<T>;
}

declare var WeakRef: WeakRefConstructor;

interface FinalizationRegistry {
readonly [Symbol.toStringTag]: "FinalizationRegistry";

/**
* Registers an object with the registry.
* @param target The target object to register.
* @param heldValue The value to pass to the finalizer for this object. This cannot be the
* target object.
* @param unregisterToken The token to pass to the unregister method to unregister the target
* object. If provided (and not undefined), this must be an object. If not provided, the target
* cannot be unregistered.
*/
register(target: object, heldValue: any, unregisterToken?: object): void;

/**
* Unregisters an object from the registry.
* @param unregisterToken The token that was used as the unregisterToken argument when calling
* register to register the target object.
*/
unregister(unregisterToken: object): void;
}

interface FinalizationRegistryConstructor {
readonly prototype: FinalizationRegistry;

/**
* Creates a finalization registry with an associated cleanup callback
* @param cleanupCallback The callback to call after an object in the registry has been reclaimed.
*/
new(cleanupCallback: (heldValue: any) => void): FinalizationRegistry;
}

declare var FinalizationRegistry: FinalizationRegistryConstructor;

0 comments on commit abf4b63

Please sign in to comment.