lodash错误找不到名字' object'

时间:2017-10-02 09:16:51

标签: angular lodash

大家好我在尝试使用带角度2的lodash时遇到问题错误是

node_modules/@types/lodash/index.d.ts(7429,25): error TS2304: Cannot find name 'object'

我不知道这是什么错误

这是我的index.d.ts

    flatMap(
        collection: object | null | undefined,
        iteratee: object
     ): boolean[];

    interface LoDashImplicitWrapper<T> {
    /**
     * @see _.flatMap
     */
    flatMap<TResult>(
        iteratee: StringIterator<Many<TResult>>
    ): LoDashImplicitArrayWrapper<TResult>;

    /**
     * @see _.flatMap
     */
    flatMap(): LoDashImplicitArrayWrapper<string>;
}

lodash file

0 个答案:

没有答案