Merge pull request #28863 from dmortimer/patch-1

Subscription type misspelled
This commit is contained in:
Nathan Shively-Sanders
2018-09-18 14:48:30 -07:00
committed by GitHub
+3 -3
View File
@@ -63,7 +63,7 @@ export type TouchEventCallback<T extends TouchEventType = TouchEventType> = (
payload: ArgmentedEvent<T>
) => any;
export interface Subscrption {
export interface Subscription {
unsubscribe: () => void;
}
@@ -71,13 +71,13 @@ export function subscribe<T extends UIEventType>(
eventType: T,
callback: UIEventCallback<T>,
options?: SubscribeOptions
): Subscrption;
): Subscription;
export function subscribe<T extends TouchEventType>(
eventType: T,
callback: TouchEventCallback<T>,
options?: SubscribeOptions
): Subscrption;
): Subscription;
export function unsubscribe<T extends UIEventType>(
eventType: T,