From d459460cc4591f46924b97ab7d6d3d09015e10f6 Mon Sep 17 00:00:00 2001 From: Ryan Huellen Date: Thu, 14 Nov 2024 21:55:39 -0600 Subject: [PATCH] fix: metadata type on symbol constructor --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index a3f985f..f70964b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,9 +1,10 @@ declare global { interface SymbolConstructor { - metadata: symbol; + readonly metadata: unique symbol; } } +// @ts-expect-error Symbol.metadata ??= Symbol('Symbol.metadata'); export {};