utilium 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,11 @@
|
|
1
1
|
import type { ClassLike } from '../types.js';
|
2
2
|
import type * as primitive from './primitives.js';
|
3
|
+
declare global {
|
4
|
+
interface SymbolConstructor {
|
5
|
+
readonly struct_init: unique symbol;
|
6
|
+
readonly struct_metadata: unique symbol;
|
7
|
+
}
|
8
|
+
}
|
3
9
|
export interface MemberInit {
|
4
10
|
name: string;
|
5
11
|
type: string | ClassLike;
|
package/package.json
CHANGED
package/src/internal/struct.ts
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
import type { ClassLike } from '../types.js';
|
2
2
|
import type * as primitive from './primitives.js';
|
3
3
|
|
4
|
+
declare global {
|
5
|
+
interface SymbolConstructor {
|
6
|
+
readonly struct_init: unique symbol;
|
7
|
+
readonly struct_metadata: unique symbol;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
4
11
|
// @ts-expect-error 2322
|
5
12
|
Symbol.struct_init ||= Symbol('struct_init');
|
6
13
|
|