arrow.js 245 B

12345678910
  1. // Error
  2. const beep = (data/*: Object */) => {}
  3. // OK
  4. const beep = (data/*: Object */, secondData/*: Object */) => {}
  5. const beep = (data/*: /* this is an object *-/ Object */) => {};
  6. const run = (cmd /*: string */) /*: Promise<void> */ => {}