Skip to content

Move ArrayBufferView from es5.d.ts to dom.generated.d.ts #15022

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

Closed
wants to merge 3 commits into from

Conversation

saschanaz
Copy link
Contributor

@saschanaz saschanaz commented Apr 5, 2017

Note: This PR modifies dom.generated.d.ts which normally is not permitted.

It is done to solve PR deadlock with TSJS-lib-generator, where removing the type on es5.d.ts errors on TS repo and adding the type on TSJS-lib-generator also errors because of duplication

This PR is related to microsoft/TypeScript-DOM-lib-generator#227 which provides ArrayBufferView type by parsing Web IDL standard specification.

Expected behavior:

ArrayBufferView is not ECMAScript-defined type but a Web IDL-defined one and thus should be provided by TSJS-lib-generator. It also is defined as a union type rather than an interface.

Actual behavior:

ArrayBufferView is in es5.d.ts and is an interface type.

This is a temporary change to provide ArrayBufferView type and solve PR
deadlock before TSJS-lib-generator PR merge.
@saschanaz
Copy link
Contributor Author

saschanaz commented Apr 16, 2017

@mhegazy Can you review this? Normally I would just wait for a review but it seems PRs with no ping eventually get forgotten.

Should we do this or you prefer just ignoring ArrayBufferView on TSJS-lib-generator side?

@saschanaz
Copy link
Contributor Author

I'll drop this, WebIDL also has Function definition and removing this on lib.d.ts makes no sense.

@saschanaz saschanaz closed this Apr 23, 2017
@saschanaz saschanaz deleted the arraybufferview branch April 23, 2017 10:40
@microsoft microsoft locked and limited conversation to collaborators Jun 21, 2018
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.

2 participants