idlize
26 строк · 393.0 Байт
1/**
2* TODO: move to compat
3*/
4
5/**
6* Only to workaround non-int enums
7*/
8export function unsafeCast<T>(value: unknown): T {9return value as unknown as T10}
11
12export enum GestureName {13Tap,14LongPress,15Pan,16Pinch,17Swipe,18Rotation,19Group
20}
21
22export class GestureComponent<T> {23public type?: GestureName24public value?: T25public hasEvent?: Int32Array26}
27