idlize
1/**
2* TODO: move to compat
3*/
4
5/**
6* Only to workaround non-int enums
7*/
8export function unsafeCast<T>(value: Object|undefined|string|null|(() => Object)| void): T {
9return value as T
10}
11
12export enum GestureName {
13Tap,
14LongPress,
15Pan,
16Pinch,
17Swipe,
18Rotation,
19Group
20}
21
22export class GestureComponent<T> {
23public type?: GestureName
24public value?: T
25public hasEvent?: Int32Array
26}
27