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

Article: how to override third party types? #85

Open
JoshuaKGoldberg opened this issue Aug 16, 2022 · 1 comment
Open

Article: how to override third party types? #85

JoshuaKGoldberg opened this issue Aug 16, 2022 · 1 comment
Assignees
Labels
type: article Adding a new article .mdx file

Comments

@JoshuaKGoldberg
Copy link
Collaborator

A question brought up on my Twitch stream today: overriding types of third party libraries if the types aren't made to be extended?

Example: some-library exports an interface MyData, and in your code you need to have an extra property myProperty added to all instances of MyData?

A more specific example: https://github.com/versatica/mediasoup/blob/41e2f52786a61942209512ca5ce20798baad8b96/node/lib/Worker.d.ts#L39

Thanks voltaryx on Twitch for bringing up! 🙌

@JoshuaKGoldberg JoshuaKGoldberg added the type: article Adding a new article .mdx file label Aug 16, 2022
@JoshuaKGoldberg JoshuaKGoldberg self-assigned this Aug 16, 2022
@JoshuaKGoldberg
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: article Adding a new article .mdx file
Projects
None yet
Development

No branches or pull requests

1 participant