create-expo-cljs-app
Version:
Create a react native application with Expo and Shadow-CLJS!
28 lines (26 loc) • 905 B
Flow
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow strict
*/
;
import { type EventSubscription } from './EventSubscription';
import type EventSubscriptionVendor from './_EventSubscriptionVendor';
/**
* EventSubscription represents a subscription to a particular event. It can
* remove its own subscription.
*/
declare class _EventSubscription<EventDefinitions: {...}, K: $Keys<EventDefinitions>> implements EventSubscription {
eventType: K,
key: number,
subscriber: EventSubscriptionVendor<EventDefinitions>,
listener: ?(...$ElementType<EventDefinitions, K>) => mixed,
context: ?$FlowFixMe,
constructor(subscriber: EventSubscriptionVendor<EventDefinitions>): any,
remove(): void,
}
export default _EventSubscription;