MCPcopy Create free account
hub / github.com/babel/babel / assertTypeAnnotation

Function assertTypeAnnotation

packages/babel-types/src/asserts/generated/index.ts:828–833  ·  view source on GitHub ↗
(
  node: object | null | undefined,
  opts?: object | null,
)

Source from the content-addressed store, hash-verified

826 assert("TypeAlias", node, opts);
827}
828export function assertTypeAnnotation(
829 node: object | null | undefined,
830 opts?: object | null,
831): asserts node is t.TypeAnnotation {
832 assert("TypeAnnotation", node, opts);
833}
834export function assertTypeCastExpression(
835 node: object | null | undefined,
836 opts?: object | null,

Callers

nothing calls this directly

Calls 1

assertFunction · 0.70

Tested by

no test coverage detected