Skip to content

Commit

Permalink
fix: metadata type on symbol constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhaticus committed Nov 15, 2024
1 parent 005c3bd commit d459460
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
declare global {
interface SymbolConstructor {
metadata: symbol;
readonly metadata: unique symbol;
}
}

// @ts-expect-error
Symbol.metadata ??= Symbol('Symbol.metadata');

export {};

0 comments on commit d459460

Please sign in to comment.