Skip to content

Instantly share code, notes, and snippets.

View binchik's full-sized avatar

Binur Konarbai binchik

View GitHub Profile
@lelandrichardson
lelandrichardson / react-native.js
Last active July 21, 2022 17:56
React Native flow types
declare var __DEV__: boolean;
declare module 'react-native' {
declare type Color = string | number;
declare type Transform =
{ perspective: number } |
{ scale: number } |
{ scaleX: number } |
@matttti
matttti / effect-generators.js
Created January 28, 2017 09:30
[redux-saga]: flow-typing of yield return values
import * as IOEffects from 'redux-saga/effects'
export function * select (...args) {
return yield IOEffects.select(...args)
}
export function * put (...args) {
return yield IOEffects.put(...args)
}
@8th713
8th713 / redux-saga_v0.14.x.js
Last active February 24, 2018 00:46
redux-saga 0.14.3 flowtype definitions
declare type ReduxSaga$Predicate<T> = (arg: T) => boolean;
declare interface ReduxSaga$Task {
isRunning(): boolean;
isCancelled(): boolean;
result(): any;
result<T>(): T;
error(): any;
done: Promise<any>;
cancel(): void;