-
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.
This mirrors the same setup/structure in ember-render-modifiers and ember-truth-helpers. The current setup was inherited from 0.2.x and does not work with the currently recommend ambient type imports.
- Loading branch information
1 parent
32f273d
commit e044def
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