We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de31faa commit 6bef124Copy full SHA for 6bef124
1 file changed
src/types.ts
@@ -2,12 +2,14 @@
2
// Proxy 类型系统
3
// ============================================================================
4
5
+declare const ProxyExpression: unique symbol;
6
+
7
/**
8
* Proxy Expression 类型标记(用于类型推导)
9
* 这是一个 phantom type,实际运行时是 Proxy 对象
10
*/
11
export type ProxyExpression<T = unknown> = {
- readonly __proxyExpression: T;
12
+ readonly [ProxyExpression]: T;
13
};
14
15
0 commit comments