diff --git a/types/subscribe-ui-event/index.d.ts b/types/subscribe-ui-event/index.d.ts index 12fca5af91..9e4e4db2e2 100644 --- a/types/subscribe-ui-event/index.d.ts +++ b/types/subscribe-ui-event/index.d.ts @@ -63,7 +63,7 @@ export type TouchEventCallback = ( payload: ArgmentedEvent ) => any; -export interface Subscrption { +export interface Subscription { unsubscribe: () => void; } @@ -71,13 +71,13 @@ export function subscribe( eventType: T, callback: UIEventCallback, options?: SubscribeOptions -): Subscrption; +): Subscription; export function subscribe( eventType: T, callback: TouchEventCallback, options?: SubscribeOptions -): Subscrption; +): Subscription; export function unsubscribe( eventType: T,