Skip to content

guards.TypeAlias.InferGuard

github-actions[bot] edited this page Jun 8, 2026 · 2 revisions

@zenstone/ts-utils / guards / InferGuard

Type Alias: InferGuard<G>

InferGuard<G> = G extends TypeGuard<infer T> ? T : never

Defined in: src/guards/index.ts:469

从 TypeGuard 提取被守卫的类型

Type Parameters

G

G

Clone this wiki locally