mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
1.3 KiB
Diff
22 lines
1.3 KiB
Diff
--- old.conflictingDeclarationsImportFromNamespace1.errors.txt
|
|
+++ new.conflictingDeclarationsImportFromNamespace1.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
index.ts(1,13): error TS2440: Import declaration conflicts with local declaration of 'pick'.
|
|
-index.ts(1,23): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
|
|
index.ts(2,14): error TS7023: 'pick' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
|
|
|
|
|
|
@@= skipped -26, +25 lines =@@
|
|
interface LoDashStatic {}
|
|
}
|
|
|
|
-==== index.ts (3 errors) ====
|
|
+==== index.ts (2 errors) ====
|
|
import * as pick from 'lodash/pick';
|
|
~~~~
|
|
!!! error TS2440: Import declaration conflicts with local declaration of 'pick'.
|
|
- ~~~~~~~~~~~~~
|
|
-!!! error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
|
|
export const pick = () => pick();
|
|
~~~~
|
|
!!! error TS7023: 'pick' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
|