diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-11-24 09:31:10 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-24 09:31:10 +1100 |
commit | 276f5297556097461e0b63f2b958d825c1c857ab (patch) | |
tree | c4146607a4646968d03ef804ec573133b2547553 /cli/dts/lib.esnext.weakref.d.ts | |
parent | 266925d772527c9ba5fbc094e67cade31fc35a47 (diff) |
feat(cli): update to TypeScript 4.1 (#7573)
Diffstat (limited to 'cli/dts/lib.esnext.weakref.d.ts')
-rw-r--r-- | cli/dts/lib.esnext.weakref.d.ts | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/cli/dts/lib.esnext.weakref.d.ts b/cli/dts/lib.esnext.weakref.d.ts index c0b9b8508..15a6bc60e 100644 --- a/cli/dts/lib.esnext.weakref.d.ts +++ b/cli/dts/lib.esnext.weakref.d.ts @@ -13,34 +13,37 @@ 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"; + readonly [Symbol.toStringTag]: "WeakRef"; - /** + /** * Returns the WeakRef instance's target object, or undefined if the target object has been * reclaimed. */ - deref(): T | undefined; + deref(): T | undefined; } interface WeakRefConstructor { - readonly prototype: WeakRef<any>; + 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>; + new<T extends object>(target?: T): WeakRef<T>; } declare var WeakRef: WeakRefConstructor; interface FinalizationRegistry { - readonly [Symbol.toStringTag]: "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 @@ -49,24 +52,24 @@ interface FinalizationRegistry { * 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; + 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; + unregister(unregisterToken: object): void; } interface FinalizationRegistryConstructor { - readonly prototype: FinalizationRegistry; + 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; + new(cleanupCallback: (heldValue: any) => void): FinalizationRegistry; } declare var FinalizationRegistry: FinalizationRegistryConstructor; |