jedifocus.navigations
Version:
Columns of JediFocus.
42 lines (38 loc) • 1.13 kB
JavaScript
/* __.-._
* '-._"7' JediFocus
* /'.-c
* | /T Do. Or do not.
* _)_/LI There is no try.
*
* This project is a part of the “Byte-Sized JavaScript” videocasts.
* You can watch “Byte-Sized JavaScript” at: https://bytesized.tv/
*
* MIT Licensed — See LICENSE.md
*
* Send your comments, suggestions, and feedback to me@volkan.io
*/
declare module 'jedifocus-react-types' {
// To standardize redux actions:
declare type Dispatcher = ({ type: string, payload: {} }) => void;
declare type ReactNode = React.ReactNode;
// I had to copy this over from flow’s source code; I don’t know why!
declare class SyntheticEvent<+T: EventTarget = EventTarget> {
bubbles: boolean;
cancelable: boolean;
+currentTarget: T;
defaultPrevented: boolean;
eventPhase: number;
isDefaultPrevented(): boolean;
isPropagationStopped(): boolean;
isTrusted: boolean;
nativeEvent: Event;
preventDefault(): void;
stopPropagation(): void;
+target: EventTarget;
timeStamp: number;
type: string;
clientX: number;
clientY: number;
persist(): void;
}
}