MCPcopy
hub / github.com/angular/angular / isWrappedDefaultExport

Function isWrappedDefaultExport

packages/core/src/util/default_export.ts:32–37  ·  view source on GitHub ↗
(value: T | DefaultExport<T>)

Source from the content-addressed store, hash-verified

30}
31
32function isWrappedDefaultExport<T>(value: T | DefaultExport<T>): value is DefaultExport<T> {
33 // We use `in` here with a string key `'default'`, because we expect `DefaultExport` objects to be
34 // dynamically imported ES modules with a spec-mandated `default` key. Thus we don't expect that
35 // `default` will be a renamed property.
36 return value && typeof value === 'object' && 'default' in value;
37}

Callers 1

maybeUnwrapDefaultExportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…