diff --git a/linq.d.ts b/linq.d.ts index a9e7d4e..c2daa60 100644 --- a/linq.d.ts +++ b/linq.d.ts @@ -21,8 +21,7 @@ declare namespace Enumerable { export function from(obj: T[]): IEnumerable; export function from(obj: Iterator): IEnumerable; export function from(obj: { length: number;[x: number]: T; }): IEnumerable; - export function from(obj: { [key: string]: T }): IEnumerable<{ key: string; value: T }>; - export function from(obj: Record): IEnumerable<{ key: string; value: T }>; + export function from(obj: Record): IEnumerable<{ key: K; value: T }>; export function make(element: T): IEnumerable; export function matches(input: string, pattern: RegExp): IEnumerable; export function matches(input: string, pattern: string, flags?: string): IEnumerable;