You can try this example with
yarn add https://gist.github.com/e386e0ea5d0773f589d3d6c6fe8c7426.git
npm install https://gist.github.com/e386e0ea5d0773f589d3d6c6fe8c7426.git
import {foo} from 'better-flow-typings-example'
foo.next('bar')
[options] | |
module.name_mapper='^most-subject$' -> '<PROJECT_ROOT>/most-subject' |
You can try this example with
yarn add https://gist.github.com/e386e0ea5d0773f589d3d6c6fe8c7426.git
npm install https://gist.github.com/e386e0ea5d0773f589d3d6c6fe8c7426.git
import {foo} from 'better-flow-typings-example'
foo.next('bar')
//@flow | |
import {sync, type Subject} from 'most-subject' | |
export const foo: Subject<'bar'> = sync() | |
foo.next('bar') |
//@flow | |
import type {Subject} from './most-subject' | |
declare export var foo: Subject<'bar'> |
//@flow | |
/* eslint-disable no-unused-vars */ | |
import {Stream} from 'most' | |
declare export | |
class Subject<T> extends Stream<T> { | |
next(value: T): Subject<T>, | |
} | |
declare export | |
function sync<T>(): Subject<T> | |
declare export | |
function async<T>(): Subject<T> |
{ | |
"name": "better-flow-typings-example", | |
"version": "0.0.1", | |
"description": "", | |
"main": "index.js", | |
"dependencies": { | |
"most": "^1.7.2", | |
"most-subject": "5.3.0" | |
}, | |
"devDependencies": { | |
"flow-bin": "^0.63.1" | |
}, | |
"author": "Zero Bias", | |
"license": "MIT", | |
"private": true | |
} |