Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enumerable.from is missing Array[] overload. #96

Open
shtse8 opened this issue Jun 26, 2022 · 1 comment
Open

Enumerable.from is missing Array[] overload. #96

shtse8 opened this issue Jun 26, 2022 · 1 comment

Comments

@shtse8
Copy link

shtse8 commented Jun 26, 2022

for the current implementation

  export function from(): IEnumerable<unknown>;
  export function from<T>(obj: Array<T>): IEnumerable<T>;
  export function from<T>(obj: IEnumerable<T>): IEnumerable<T>;
  export function from(obj: number): IEnumerable<number>;
  export function from(obj: boolean): IEnumerable<boolean>;
  export function from(obj: string): IEnumerable<string>;
  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 }>;

it is missing Array<T> overload.

@juancri
Copy link

juancri commented Dec 8, 2022

What about the second line of your snippet?

export function from<T>(obj: Array<T>): IEnumerable<T>;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants