Skip to content

Dedicated worker postMessage marked as depricated #23653

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
efrancis opened this issue Apr 24, 2018 · 2 comments
Closed

Dedicated worker postMessage marked as depricated #23653

efrancis opened this issue Apr 24, 2018 · 2 comments
Assignees
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Fixed A PR has been merged for this issue Help Wanted You can do this

Comments

@efrancis
Copy link

TypeScript Version: working with current github version, error introduce with commit of the 29th of March 2018 (79e5e79)

Search Terms: worker, postmessage, deprecated

Issue
files lib.dom.d.ts and lib.webworker.d.ts mark the method "postMessage" of the "Worker" interface as being deprecated.
As I cannot find any information to support the claim that postMessage is depricated, nor do I see any new alternative method that should be used instead, I believe that this @deprecated has been inserted in the wrong place.

Playground Link: Just basing myself on the files in the repository here, no link available

@mhegazy
Copy link
Contributor

mhegazy commented Apr 24, 2018

The file is auto-generated from the webidl definition of edge. they have marked it as deprecated, and that is why it shows up as such. we are moving to use the standard webidl where deprecated APIs will just not be added. so this should be fixed in the next release.

@mhegazy mhegazy added Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Bug A bug in TypeScript Help Wanted You can do this labels Apr 24, 2018
@mhegazy mhegazy added this to the Community milestone Apr 24, 2018
@mhegazy
Copy link
Contributor

mhegazy commented Apr 24, 2018

Meanwhile, PRs welcomed. You can find more information about contributing lib.d.ts fixes at https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md#contributing-libdts-fixes.

@mhegazy mhegazy modified the milestones: Community, TypeScript 3.0 May 10, 2018
@mhegazy mhegazy self-assigned this May 10, 2018
@mhegazy mhegazy added the Fixed in TSJS repo Fix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yet label May 10, 2018
@mhegazy mhegazy reopened this May 10, 2018
@mhegazy mhegazy added Fixed A PR has been merged for this issue and removed Fixed in TSJS repo Fix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yet labels Jun 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Fixed A PR has been merged for this issue Help Wanted You can do this
Projects
None yet
Development

No branches or pull requests

2 participants