mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
36 lines
1.4 KiB
Plaintext
36 lines
1.4 KiB
Plaintext
index.ts(1,13): error TS2440: Import declaration conflicts with local declaration of 'pick'.
|
|
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.
|
|
|
|
|
|
==== node_modules/@types/lodash/object.d.ts (0 errors) ====
|
|
import _ = require("./index");
|
|
declare module "./index" {
|
|
interface LoDashStatic {
|
|
pick: <T extends object, U extends keyof T>(
|
|
object: T,
|
|
...props: Array<U>
|
|
) => Pick<T, U>;
|
|
}
|
|
}
|
|
|
|
==== node_modules/@types/lodash/pick.d.ts (0 errors) ====
|
|
import { pick } from "./index";
|
|
export = pick;
|
|
|
|
==== node_modules/@types/lodash/index.d.ts (0 errors) ====
|
|
/// <reference path="./object.d.ts" />
|
|
export = _;
|
|
export as namespace _;
|
|
declare const _: _.LoDashStatic;
|
|
declare namespace _ {
|
|
interface LoDashStatic {}
|
|
}
|
|
|
|
==== index.ts (2 errors) ====
|
|
import * as pick from 'lodash/pick';
|
|
~~~~
|
|
!!! error TS2440: Import declaration conflicts with local declaration of 'pick'.
|
|
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.
|
|
|