typed-typings / npm-lodash

The type definition for https://github.com/lodash/lodash
MIT License
16 stars 22 forks source link

Dictionary<T> and numeric-keys objects #30

Open artaommahe opened 8 years ago

artaommahe commented 8 years ago

Dictionary interface defined as

interface Dictionary<T> {
  [index: string]: T;
}

this produce error with numeric-keys objects for any method that takes Dictionary (e.g. find, map, filter, etc)

interface ISomeList {
  [index: number]: any;
}