MCPcopy Index your code
hub / github.com/angular/angular / cast

Function cast

packages/forms/signals/src/field/util.ts:22–22  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

20
21/** Recasts the given value as a new type. */
22export function cast<T>(value: unknown): asserts value is T {}
23
24/**
25 * A helper method allowing to get injector regardless of the options type.

Callers 1

getMetadataMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…