clean-jsdoc-theme TypeDoc APIv0.0.0

isType

isType< T, >( value: unknown, check: (value: unknown) => boolean, ): value is T

Source: common.ts:439

Type guard for checking if value is a specific type

Type Parameters

  • T — Expected type

Parameters

  • value (unknown) — Value to check
  • check ((value: unknown) => boolean) — Type checking function

Returns

  • value is T — True if value passes the check