FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

TypedArrays: fixed find and findIndex callback param obj type. by NaridaL · Pull Request #18493 · microsoft/TypeScript · GitHub

TypedArrays: fixed find and findIndex callback param obj type. - #18493

Merged
Mohamed Hegazy (mhegazy) merged 1 commit into
microsoft:masterfrom
NaridaL:fix18425
Sep 18, 2017
Merged

TypedArrays: fixed find and findIndex callback param obj type.#18493
Mohamed Hegazy (mhegazy) merged 1 commit into
microsoft:masterfrom
NaridaL:fix18425

Conversation

Adrian Leonhard (NaridaL) commented Sep 14, 2017
edited
Loading

Copy link
Copy Markdown
Contributor

Fixes #18425.

Adrian Leonhard (@NaridaL),
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by Microsoft. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

Comment thread src/lib/es5.d.ts Outdated
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number | undefined;
find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Uint16Array ?

Comment thread src/lib/es5.d.ts Outdated
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Uint16Array

Comment thread src/lib/es5.d.ts Outdated
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number | undefined;
find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Uint32Array

Comment thread src/lib/es5.d.ts Outdated
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Uint32Array

Copy link
Copy Markdown
Contributor Author

Yeah... sorry about that.

BTW, I tried it with the separate TypedArray interface, and it seems to be an improvement...

previous:

PS C:\Users\aval\tsdev\TypeScript> node built\local\tsc.js --diagnostics --p src\compiler\tsconfig.json
Files:            36
Lines:         93186
Nodes:        445312
Identifiers:  168285
Symbols:       71668
Types:         32088
Memory used: 371617K
I/O read:      0.02s
I/O write:     0.17s
Parse time:    0.71s
Bind time:     0.62s
Check time:    2.90s
Emit time:     2.06s
Total time:    6.29s

now:

PS C:\Users\aval\tsdev\TypeScript> node built\local\tsc.js --diagnostics --p src\compiler\tsconfig.json
Files:            36
Lines:         91325
Nodes:        440475
Identifiers:  166994
Symbols:       70992
Types:         31941
Memory used: 350637K
I/O read:      0.03s
I/O write:     0.03s
Parse time:    0.69s
Bind time:     0.58s
Check time:    2.84s
Emit time:     1.88s
Total time:    5.98s

... not sure if those statistics are the only relevant thing though.

Copy link
Copy Markdown
Contributor Author

Oh yeah, the issues with U/Intarray should be fixed now, because it's not immediately obvious from the code reviews^^.

Mohamed Hegazy (mhegazy) merged commit 8c2d79c into microsoft:master Sep 18, 2017

Copy link
Copy Markdown
Contributor

We should be moving them out of es5.d.ts anyways. #15780 should be in first though.

Microsoft (microsoft) locked and limited conversation to collaborators Jun 14, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL