{"size": 280, "ext": "js", "max_stars_repo_path": "addon/components/freestyle/usage/number/control.js", "max_stars_repo_name": "lolmaus/ember-freestyle", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "addon/components/freestyle/usage/number/control.js", "max_issues_repo_name": "lolmaus/ember-freestyle", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "addon/components/freestyle/usage/number/control.js", "max_forks_repo_name": "lolmaus/ember-freestyle", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.0, "max_line_length": 70, "alphanum_fraction": 0.7178571429}
import Component from '@glimmer/component';
import { action } from '@ember/object';

export default class FreestyleUsageNumberComponent extends Component {
  @action onInput(event) {
    let { value } = event.target;
    this.args.onInput(value ? parseFloat(value) : null);
  }
}
