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

Convert func-utils.js to typescript #10631

Merged
merged 4 commits into from Jul 26, 2019
Merged

Convert func-utils.js to typescript #10631

merged 4 commits into from Jul 26, 2019

Conversation

nicu-chiciuc
Copy link
Contributor

This is part of the ongoing transformation to typescript.
The pull should be accepted only after adding a @types/underscore to the node_modules, as mentioned in pull request 10624. Currently I've installed the types locally.

Also, I've added some ad-hoc types e.g. EmptyFunction and AnyFunction. After the transformation will mature we can use a library for stuff like this or have a centralised way where these type shuld be defined.

The global Function interface was ammended to include the displayName property.

@apollo-cla
Copy link

@nicu-chiciuc: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/

@nicu-chiciuc
Copy link
Contributor Author

Is it possible to rerun the AppVeyor check without commiting anything?

nicu-chiciuc and others added 4 commits July 25, 2019 17:34
Also removed func-utils.js from .eslintignore (since it wasn't event matched by the rule). Added `displayName` property to Function interface.
Copy link
Contributor

@benjamn benjamn left a comment

Choose a reason for hiding this comment

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

Looks great with a few minor style tweaks. Thanks @nicu-chiciuc!


interface Function {
// func-utils.ts makes usage of this feature
displayName?: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice catch.

@benjamn benjamn merged commit a6d454b into meteor:release-1.8.2 Jul 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants