diff --git a/types/ember-on-helper/-private/shared.d.ts b/types/ember-on-helper/-private/shared.d.ts index b815671..33fe1b1 100644 --- a/types/ember-on-helper/-private/shared.d.ts +++ b/types/ember-on-helper/-private/shared.d.ts @@ -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; } diff --git a/types/ember-on-helper/on-document.d.ts b/types/ember-on-helper/on-document.d.ts index 7d9aa1f..eca2e13 100644 --- a/types/ember-on-helper/on-document.d.ts +++ b/types/ember-on-helper/on-document.d.ts @@ -1,7 +1,7 @@ declare module 'ember-on-helper/helpers/on-document' { import Helper from '@ember/component/helper'; - import { OnArgs } from 'ember-on-helper/helpers/on'; + import { OnArgs } from '@gavant/glint-template-types/types/ember-on-helper/-private/shared'; interface OnDocumentHelperSignature { Args: { Named: OnArgs; Positional: [eventName: K, handler: (event: DocumentEventMap[K]) => void] }; diff --git a/types/ember-on-helper/on-window.d.ts b/types/ember-on-helper/on-window.d.ts index 370fc3b..a275f62 100644 --- a/types/ember-on-helper/on-window.d.ts +++ b/types/ember-on-helper/on-window.d.ts @@ -1,7 +1,7 @@ declare module 'ember-on-helper/helpers/on-window' { import Helper from '@ember/component/helper'; - import { OnArgs } from 'ember-on-helper/helpers/on'; + import { OnArgs } from '@gavant/glint-template-types/types/ember-on-helper/-private/shared'; interface OnWindowHelperSignature { Args: { Named: OnArgs; Positional: [eventName: K, handler: (event: WindowEventMap[K]) => void] };