Function
toDefs
(
types: Type<any>[] | (() => Type<any>[]) | undefined | null,
mapFn: (type: Type<any>) => PipeDef<any> | DirectiveDef<any>,
)
Source from the content-addressed store, hash-verified
| 234 | mapFn: (type: Type<any>) => PipeDef<any>, |
| 235 | ): PipeDefList | null; |
| 236 | function toDefs( |
| 237 | types: Type<any>[] | (() => Type<any>[]) | undefined | null, |
| 238 | mapFn: (type: Type<any>) => PipeDef<any> | DirectiveDef<any>, |
| 239 | ): any { |
| 240 | if (!types) return null; |
| 241 | if (typeof types == 'function') { |
| 242 | types = types(); |
| 243 | } |
| 244 | return types.map(mapFn); |
| 245 | } |
| 246 | |
| 247 | function toHtml(element: Element, keepNgReflect = false): string { |
| 248 | if (element) { |
Tested by
no test coverage detected