esmHelpers.d.ts 420 B

123456789
  1. /** Typescript thinks import('...js/.d.ts') needs mod.default.default */
  2. declare function fakeUnwrapDefault<T>(mod: {
  3. default: T;
  4. }): T;
  5. /** Typescript thinks import('...ts') doesn't need mod.default.default, but does */
  6. declare function actualUnwrapDefault<T>(mod: T): T;
  7. export declare const unwrapTypescript: typeof actualUnwrapDefault;
  8. export declare const unwrapJavascript: typeof fakeUnwrapDefault;
  9. export {};