Skip to content

Commit

Permalink
Merge pull request #94 from Neuroboy23/master
Browse files Browse the repository at this point in the history
improve type definition of from(obj: object)
  • Loading branch information
mihaifm committed May 12, 2022
2 parents 06b7c1b + 4e4ecd2 commit a5ca60b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions linq.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ declare namespace Enumerable {
export function from<T>(obj: T[]): IEnumerable<T>;
export function from<T>(obj: Iterator<T>): IEnumerable<T>;
export function from<T>(obj: { length: number;[x: number]: T; }): IEnumerable<T>;
export function from<T>(obj: { [key: string]: T }): IEnumerable<{ key: string; value: T }>;
export function from<T>(obj: Record<PropertyKey, T>): IEnumerable<{ key: string; value: T }>;
export function from<K extends PropertyKey, T>(obj: Record<K, T>): IEnumerable<{ key: K; value: T }>;
export function make<T>(element: T): IEnumerable<T>;
export function matches<T>(input: string, pattern: RegExp): IEnumerable<T>;
export function matches<T>(input: string, pattern: string, flags?: string): IEnumerable<T>;
Expand Down

0 comments on commit a5ca60b

Please sign in to comment.