MCPcopy Create free account
hub / github.com/denoland/std / assertType

Function assertType

testing/types.ts:41–44  ·  view source on GitHub ↗
(
  // deno-lint-ignore no-unused-vars
  expectTrue: T,
)

Source from the content-addressed store, hash-verified

39 * @param expectTrue True if the passed in type argument resolved to true.
40 */
41export function assertType<T extends boolean>(
42 // deno-lint-ignore no-unused-vars
43 expectTrue: T,
44) {}
45
46/**
47 * Asserts at compile time that the provided type argument's type resolves to true.

Callers 8

fnFunction · 0.90
fnFunction · 0.90
fnFunction · 0.90
parse_args_test.tsFile · 0.90
types_test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected