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

[TYPE IMPROVEMENT] remove global callback and dictionary types #1271

Merged
merged 2 commits into from
Nov 15, 2021

Conversation

ricardo-devis-agullo
Copy link
Collaborator

The global types defined in global.d.ts Dictionary and Callback were handy, but the problem is that they don't get transpiled when compiling (because they are global declares), so when importing 'oc' on a TypeScript project, all types that reference Callback or Dictionary, becuase it can't find the definition anymore, will be converted to any and we lose all the type information.

This is a very simple PR that just does a global replacement to to change the type for the alias declaration.

@ricardo-devis-agullo ricardo-devis-agullo merged commit cd830d1 into master Nov 15, 2021
@ricardo-devis-agullo ricardo-devis-agullo deleted the remove-global-types branch November 15, 2021 17:33
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

Successfully merging this pull request may close these issues.

2 participants