-
-
Notifications
You must be signed in to change notification settings - Fork 134
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
Migrate to TypeScript #1000
Comments
Thanks for opening this issue @ssi02014! I do plan to eventually migrate to TypeScript but that will be a breaking change this for library. |
@remarkablemark 👍 as-is// attributes-to-props.js
var reactProperty = require('react-property');
var utilities = require('./utilities');
// https://reactjs.org/docs/uncontrolled-components.html
// https://developer.mozilla.org/docs/Web/HTML/Attributes
var UNCONTROLLED_COMPONENT_ATTRIBUTES = ['checked', 'value'];
var UNCONTROLLED_COMPONENT_NAMES = ['input', 'select', 'textarea'];
var VALUE_ONLY_INPUTS = {
reset: true,
submit: true
};
// ... to-be// attributes-to-props.js
const reactProperty = require('react-property');
const utilities = require('./utilities');
// https://reactjs.org/docs/uncontrolled-components.html
// https://developer.mozilla.org/docs/Web/HTML/Attributes
const UNCONTROLLED_COMPONENT_ATTRIBUTES = ['checked', 'value'];
const UNCONTROLLED_COMPONENT_NAMES = ['input', 'select', 'textarea'];
const VALUE_ONLY_INPUTS = {
reset: true,
submit: true
};
// ... |
@ssi02014 Yes if we're using TypeScript, then we'll be using ES6 syntax. |
@remarkablemark |
@remarkablemark any updates on the progress here? |
@kasperaamodt No update at the moment. I've been pretty busy so I haven't had a chance to work on this. |
BREAKING CHANGE: CommonJS imports require the `.default` key Closes #1000
BREAKING CHANGE: CommonJS imports require the `.default` key Closes #1000
BREAKING CHANGE: CommonJS imports require the `.default` key Closes #1000
BREAKING CHANGE: CommonJS imports require the `.default` key Closes #1000
🎉🎉🎉 |
Hello, 👏 @remarkablemark
I'm looking at the code inside "lib" and it looks like you're still using "var" to declare most variables.
Do you have any plans to migrate to "let" or "const"?
If there is a plan, I'd like to work on it, but what do you think?
The text was updated successfully, but these errors were encountered: