d5fbada13d
Move test coercion out of a hidden global and require each test to import the helper so review tools and runtime scripts can see the unsafe boundary. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
6 lines
252 B
TypeScript
6 lines
252 B
TypeScript
export function unsafeTestValue<TValue extends PropertyKey>(value: TValue): TValue
|
|
export function unsafeTestValue<TValue = any>(value: unknown): TValue
|
|
export function unsafeTestValue<TValue = any>(value: unknown): TValue {
|
|
return value as TValue
|
|
}
|