(value: T | DefaultExport<T>)
| 30 | } |
| 31 | |
| 32 | function 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 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…