We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Use case example:
const imperial = store.state.settings.measure_system == 2; const units = imperial ? ["ac", "ft2"] : ["ha", "a"]; const measure = measureFrom(...units); return measure(new Measure(value, "ha").to("m2"));
I would be cool to drop the .to("m2") part by accepting Measure (not only number of base type).
.to("m2")
The text was updated successfully, but these errors were encountered:
Example of computed converter being used atm:
get () { return new Measure(this.value, 'm').to('km') } set (value: number) { this.value = new Measure(value, 'km').to('m') }
Idea as replacement:
get () { return new Measure(this.value, 'm').to('km') } set (value: Measure) { this.value = new Measure(value, 'm') }
Sorry, something went wrong.
I might need to drop class approach. Prop overloading, constructor and value on this doesn't work that well together.
class
this
No branches or pull requests
Use case example:
I would be cool to drop the
.to("m2")
part by accepting Measure (not only number of base type).The text was updated successfully, but these errors were encountered: