Skip to content

Commit

Permalink
Fixed SymbolConstructor augmentation
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Oct 21, 2024
1 parent 877edf2 commit 369ba9b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/internal/struct-symbols.d.ts

This file was deleted.

7 changes: 7 additions & 0 deletions src/internal/struct.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import type { ClassLike } from '../types.js';
import type * as primitive from './primitives.js';

declare global {
interface SymbolConstructor {
readonly struct_init: unique symbol;
readonly struct_metadata: unique symbol;
}
}

// @ts-expect-error 2322
Symbol.struct_init ||= Symbol('struct_init');

Expand Down

0 comments on commit 369ba9b

Please sign in to comment.