Skip to content

Instantly share code, notes, and snippets.

View gabelevi's full-sized avatar

Gabe Levi gabelevi

  • Facebook
  • New York, NY, USA
View GitHub Profile
$ opam switch show
4.05.0
$ opam list
# Installed packages for 4.05.0:
base-bigarray base Bigarray library distributed with the OCaml compiler
base-bytes base Bytes library distributed with the OCaml compiler
base-threads base Threads library distributed with the OCaml compiler
base-unix base Unix library distributed with the OCaml compiler
biniou 1.2.0 Binary data format designed for speed, safety, ease of use and backward compatibility as protocols evolve
bisect_ppx 1.3.2 Code coverage for OCaml

Master

0.7.1

  • Adds a flow.runOnAllFiles option, which treats all files as if they had // @flow at the top. - [@doshisid][] #144

0.7.0

  • Bundles flow-bin with the plugin to use in cases where it has not been installed globally or locally. - [@BrainMaestro][] #118
@gabelevi
gabelevi / -
Created February 24, 2017 17:01
legacy/store/GraphQLQueryRunner.js:280
280: }).done();
^^^^ property `done`. Property not found in
180: storeData.getTaskQueue().enqueue(() => {
^ Promise
mutation/RelayOptimisticMutationUtils.js:209
209: return RelayQuery.Field.build({
^ object literal. This type is incompatible with the expected param type of
1152: }: {
@gabelevi
gabelevi / -
Created November 1, 2016 14:55
[88878] ChoiceKitUseT TryFlow ("/Users/glevi/test/react-menu-list/node_modules/kefir-bus/index.js.flow:7:29-36: \"intersection type\"")
[88878] TypeAppT (OpenT, [OpenT; OpenT]) ~>
[88878] UseT (UnknownUse, ObjT)
typeapp stack entry: identifier `Observable`<[],[]>
TVAR 166894 (95305): /Users/glevi/test/react-menu-list/node_modules/kefir-bus/index.js.flow:5:44,16:1:
object type
[88878] OpenT ("/Users/glevi/test/react-menu-list/node_modules/kefir-bus/index.js.flow:5:26-40: \"identifier `Observable`\"", 35212, Resolved PolyT) ~>
[88878] SpecializeT ("/Users/glevi/test/react-menu-list/node_modules/kefir-bus/index.js.flow:5:44,16:1: \"object type\"", false, [OpenT; OpenT], OpenT)
[options]
module.name_mapper='^\(.*\)\.css$' -> '<PROJECT_ROOT>/CSSModule.js.flow'
[libs]
CSSModule.js.flow
17:06:48 danvk: flow-help: Could I get some help with https://github.com/facebook/flow/issues/388? I’m hoping there’s just some syntax I’m missing
17:06:51 bhosmer has joined (~bhosmer@2620:10d:c082:105b:ae87:a3ff:fe09:fe82)
17:07:24 jeffmo: terinjokes: any chance you could boil your repro down to a gist?
17:07:28 dsereni has left IRC (Ping timeout: 245 seconds)
17:07:36 terinjokes: yeah, trying now
17:08:47 jeffmo: avikchaudhuri: Does instantiating type vars work in the way that danvk is doing in that issue? ^
17:13:00 glevi: danvk: So number is a subtype of (number | string) and string is a subtype of (number | string)
17:13:10 glevi: danvk: However (number | string) is also a subtype of (number | string )
17:13:35 leebyron has left IRC (Remote host closed the connection)
17:13:41 danvk: interesting
// A.js
export var MyMixin = { foo() {} };
export var MyNumber = 42;
export class MyClass { bar() {} }
export type MyClassType = MyClass;
export type MyNumberType = number;
// ========================================================
[ignore]
[include]
[libs]
bar.js
[options]
@gabelevi
gabelevi / gist:f8a860cb70600b855e73
Created November 12, 2014 00:24
New esprima compat tests
'Type Annotations': [
'a = class Foo<T> { }',
'a = class Foo<T> extends Bar<T> {}',
'a=function<T,S>() {}',
'a={set fooProp(value:number){}}',
'class Array { concat(items:number | string) {}; }',
'class Foo { [1 + 1]: string; }',
'class Foo { 123:string; }',
'class Foo { "bar"<T>() { } }',
'class Foo { "prop1":string; }',