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

Function isMyShape

packages/core/test/render3/matchers_spec.ts:27–29  ·  view source on GitHub ↗
(obj: any)

Source from the content-addressed store, hash-verified

25
26 const myShape: MyShape = {propA: 'value', propB: 3};
27 function isMyShape(obj: any): obj is MyShape {
28 return isShapeOf<MyShape>(obj, ShapeOfMyShape);
29 }
30 const ShapeOfMyShape: ShapeOf<MyShape> = {propA: true, propB: true};
31 function matchMyShape(expected?: Partial<MyShape>): jasmine.AsymmetricMatcher<MyShape> {
32 return matchObjectShape('MyShape', isMyShape, expected);

Callers 1

matchers_spec.tsFile · 0.85

Calls 1

isShapeOfFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…