-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from chancancode/fix-ember-on-helper
Fix ember-on-helper internal types
- Loading branch information
Showing
3 changed files
with
13 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
declare module 'ember-on-helper/helpers/on' { | ||
export interface OnArgs { | ||
/** To fire an event listener only once pass true */ | ||
once?: boolean; | ||
export interface OnArgs { | ||
/** To fire an event listener only once pass true */ | ||
once?: boolean; | ||
|
||
/** | ||
* If true, you promise to not call event.preventDefault(). This allows the browser to optimize the processing of this event and not block the UI thread. This prevent scroll jank. | ||
* | ||
* If you still call event.preventDefault(), an assertion will be raised. | ||
*/ | ||
passive?: boolean; | ||
/** | ||
* If true, you promise to not call event.preventDefault(). This allows the browser to optimize the processing of this event and not block the UI thread. This prevent scroll jank. | ||
* | ||
* If you still call event.preventDefault(), an assertion will be raised. | ||
*/ | ||
passive?: boolean; | ||
|
||
/** To listen for an event during the capture phase already, use the capture option */ | ||
capture?: boolean; | ||
} | ||
/** To listen for an event during the capture phase already, use the capture option */ | ||
capture?: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters