Files
oh-my-opencode/test-support/unsafe-test-value.ts
T
YeonGyu-Kim d5fbada13d test: make unsafe test coercion explicit
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>
2026-05-12 15:51:31 +09:00

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
}