From 9df864ddebf878e511d795d4d8f650f0b56f8717 Mon Sep 17 00:00:00 2001 From: Niklas Mollenhauer Date: Sat, 14 Oct 2023 08:41:59 +0200 Subject: [PATCH] typings: use `Symbol.dispose` and `Symbol.asyncDispose` in types PR-URL: https://github.com/nodejs/node/pull/50123 Reviewed-By: Antoine du Hamel Reviewed-By: Debadree Chatterjee --- typings/primordials.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typings/primordials.d.ts b/typings/primordials.d.ts index 006ecace1ead1c..ffce093458f2b5 100644 --- a/typings/primordials.d.ts +++ b/typings/primordials.d.ts @@ -427,8 +427,8 @@ declare namespace primordials { export const SymbolFor: typeof Symbol.for export const SymbolKeyFor: typeof Symbol.keyFor export const SymbolAsyncIterator: typeof Symbol.asyncIterator - export const SymbolDispose: symbol // TODO(MoLow): use typeof Symbol.dispose when it's available - export const SymbolAsyncDispose: symbol // TODO(MoLow): use typeof Symbol.asyncDispose when it's available + export const SymbolDispose: typeof Symbol.dispose + export const SymbolAsyncDispose: typeof Symbol.asyncDispose export const SymbolHasInstance: typeof Symbol.hasInstance export const SymbolIsConcatSpreadable: typeof Symbol.isConcatSpreadable export const SymbolIterator: typeof Symbol.iterator