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

Function toDefs

packages/core/test/render3/view_fixture.ts:235–244  ·  view source on GitHub ↗
(
  types: Type<any>[] | (() => Type<any>[]) | undefined | null,
  mapFn: (type: Type<any>) => PipeDef<any> | DirectiveDef<any>,
)

Source from the content-addressed store, hash-verified

233 mapFn: (type: Type<any>) => PipeDef<any>,
234): PipeDefList | null;
235function toDefs(
236 types: Type<any>[] | (() => Type<any>[]) | undefined | null,
237 mapFn: (type: Type<any>) => PipeDef<any> | DirectiveDef<any>,
238): any {
239 if (!types) return null;
240 if (typeof types == 'function') {
241 types = types();
242 }
243 return types.map(mapFn);
244}
245
246function toHtml(element: Element, keepNgReflect = false): string {
247 if (element) {

Callers 1

constructorMethod · 0.85

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…