-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Suport type aliases for TM getConstants() return type #39136
Conversation
This pull request was exported from Phabricator. Differential Revision: D48620652 |
Summary: Pull Request resolved: facebook#39136 ## Changelog: [Internal] - `getConstants()` method for TM was enforced to only use object literals for the return type specs. This limits flexibility, in particular those data structures can't be consequently exported and picked up by codegen (not even mentioning the potential need for copypasting those obejct literals around). This relaxes this restriction. Note that I've been digging into the development history in order to find out whether there was any particular historical reason for such a limitation, but couldn't find any, so I assume it was rather incidental. Differential Revision: https://internalfb.com/D48620652 fbshipit-source-id: fcfd0fd74c6313755c80a1233553aa694e7e18bd
This pull request was exported from Phabricator. Differential Revision: D48620652 |
Summary: Pull Request resolved: facebook#39136 ## Changelog: [Internal] - `getConstants()` method for TM was enforced to only use object literals for the return type specs. This limits flexibility, in particular those data structures can't be consequently exported and picked up by codegen (not even mentioning the potential need for copypasting those obejct literals around). This relaxes this restriction. Note that I've been digging into the development history in order to find out whether there was any particular historical reason for such a limitation, but couldn't find any, so I assume it was rather incidental. Reviewed By: christophpurrer Differential Revision: D48620652 fbshipit-source-id: ea79ea139641d795c5d31239cb465289a793458e
5945f46
to
95f7e7e
Compare
This pull request was exported from Phabricator. Differential Revision: D48620652 |
Summary: Pull Request resolved: facebook#39136 ## Changelog: [Internal] - `getConstants()` method for TM was enforced to only use object literals for the return type specs. This limits flexibility, in particular those data structures can't be consequently exported and picked up by codegen (not even mentioning the potential need for copypasting those obejct literals around). This relaxes this restriction. Note that I've been digging into the development history in order to find out whether there was any particular historical reason for such a limitation, but couldn't find any, so I assume it was rather incidental. Reviewed By: christophpurrer Differential Revision: D48620652 fbshipit-source-id: d4bd08d1fa82244dd739620c11409bd0355c6385
95f7e7e
to
258448a
Compare
This pull request was exported from Phabricator. Differential Revision: D48620652 |
Summary: Pull Request resolved: facebook#39136 ## Changelog: [Internal] - `getConstants()` method for TM was enforced to only use object literals for the return type specs. This limits flexibility, in particular those data structures can't be consequently exported and picked up by codegen (not even mentioning the potential need for copypasting those obejct literals around). This relaxes this restriction. Note that I've been digging into the development history in order to find out whether there was any particular historical reason for such a limitation, but couldn't find any, so I assume it was rather incidental. Reviewed By: christophpurrer Differential Revision: D48620652 fbshipit-source-id: 2ba410d9410fc59077b5f73babafa1158a68a79b
258448a
to
75cc5d9
Compare
Summary: Pull Request resolved: facebook#39136 ## Changelog: [Internal] - `getConstants()` method for TM was enforced to only use object literals for the return type specs. This limits flexibility, in particular those data structures can't be consequently exported and picked up by codegen (not even mentioning the potential need for copypasting those obejct literals around). This relaxes this restriction. Note that I've been digging into the development history in order to find out whether there was any particular historical reason for such a limitation, but couldn't find any, so I assume it was rather incidental. Differential Revision: https://internalfb.com/D48620652 fbshipit-source-id: 752d448f2f3ae473c77d974252d59fe6894d4666
This pull request was exported from Phabricator. Differential Revision: D48620652 |
Summary: Pull Request resolved: facebook#39136 ## Changelog: [Internal] - `getConstants()` method for TM was enforced to only use object literals for the return type specs. This limits flexibility, in particular those data structures can't be consequently exported and picked up by codegen (not even mentioning the potential need for copypasting those obejct literals around). This relaxes this restriction. Note that I've been digging into the development history in order to find out whether there was any particular historical reason for such a limitation, but couldn't find any, so I assume it was rather incidental. Reviewed By: christophpurrer Differential Revision: D48620652 fbshipit-source-id: bc2f9b99c64885d63a0ee51e6e0394d2ff5aaed0
75cc5d9
to
9fca5c1
Compare
This pull request was exported from Phabricator. Differential Revision: D48620652 |
Summary: Pull Request resolved: facebook#39136 ## Changelog: [Internal] - `getConstants()` method for TM was enforced to only use object literals for the return type specs. This limits flexibility, in particular those data structures can't be consequently exported and picked up by codegen (not even mentioning the potential need for copypasting those obejct literals around). This relaxes this restriction. Note that I've been digging into the development history in order to find out whether there was any particular historical reason for such a limitation, but couldn't find any, so I assume it was rather incidental. Reviewed By: christophpurrer Differential Revision: D48620652 fbshipit-source-id: d9aecee65f00a3ed745df8551fb30496924c242d
9fca5c1
to
d55d891
Compare
Summary: Pull Request resolved: facebook#39136 ## Changelog: [Internal] - `getConstants()` method for TM was enforced to only use object literals for the return type specs. This limits flexibility, in particular those data structures can't be consequently exported and picked up by codegen (not even mentioning the potential need for copypasting those obejct literals around). This relaxes this restriction. Note that I've been digging into the development history in order to find out whether there was any particular historical reason for such a limitation, but couldn't find any, so I assume it was rather incidental. Differential Revision: https://internalfb.com/D48620652 fbshipit-source-id: 3aac1beb72907b18c475792fc70cceef4eb74b1e
This pull request was exported from Phabricator. Differential Revision: D48620652 |
Summary: Pull Request resolved: facebook#39136 ## Changelog: [Internal] - `getConstants()` method for TM was enforced to only use object literals for the return type specs. This limits flexibility, in particular those data structures can't be consequently exported and picked up by codegen (not even mentioning the potential need for copypasting those obejct literals around). This relaxes this restriction. Note that I've been digging into the development history in order to find out whether there was any particular historical reason for such a limitation, but couldn't find any, so I assume it was rather incidental. Reviewed By: christophpurrer Differential Revision: D48620652 fbshipit-source-id: 0d2e0a639356390e894865560bceecd2d5b589ad
d55d891
to
67a1ce9
Compare
Summary: Pull Request resolved: facebook#39136 ## Changelog: [Internal] - `getConstants()` method for TM was enforced to only use object literals for the return type specs. This limits flexibility, in particular those data structures can't be consequently exported and picked up by codegen (not even mentioning the potential need for copypasting those obejct literals around). This relaxes this restriction. Note that I've been digging into the development history in order to find out whether there was any particular historical reason for such a limitation, but couldn't find any, so I assume it was rather incidental. Differential Revision: https://internalfb.com/D48620652 fbshipit-source-id: 8c3debb35157de868b69d889bbf7224b278bbd80
Summary: Pull Request resolved: facebook#39136 ## Changelog: [Internal] - `getConstants()` method for TM was enforced to only use object literals for the return type specs. This limits flexibility, in particular those data structures can't be consequently exported and picked up by codegen (not even mentioning the potential need for copypasting those obejct literals around). This relaxes this restriction. Note that I've been digging into the development history in order to find out whether there was any particular historical reason for such a limitation, but couldn't find any, so I assume it was rather incidental. Reviewed By: christophpurrer Differential Revision: D48620652 fbshipit-source-id: 901b102ec90b43f41b75084ea57668d9c6a63ff6
This pull request was exported from Phabricator. Differential Revision: D48620652 |
67a1ce9
to
b05c4b9
Compare
This pull request has been merged in 3c6bf7b. |
Summary:
Changelog:
[Internal] -
getConstants()
method for TM was enforced to only use object literals for the return type specs.This limits flexibility, in particular those data structures can't be consequently exported and picked up by codegen (not even mentioning the potential need for copypasting those obejct literals around).
This relaxes this restriction.
Note that I've been digging into the development history in order to find out whether there was any particular historical reason for such a limitation, but couldn't find any, so I assume it was rather incidental.
Differential Revision: D48620652