├── .editorconfig ├── .eslintrc.js ├── .gitignore ├── .travis.yml ├── .vscode ├── launch.json └── tasks.json ├── LICENSE.md ├── README.md ├── archived.svg ├── babel.config.js ├── benchmark ├── flow-runtime.js ├── floweret.js ├── no-type-checking.js ├── objectmodel.js ├── rollup.config.js └── runtypes.js ├── coffeelint.json ├── jest.config.js ├── package.json ├── src ├── check.coffee ├── fn.coffee ├── index.coffee ├── isValid.coffee ├── tools.coffee ├── typeError.coffee ├── typeOf.coffee └── types │ ├── Any.coffee │ ├── Integer.coffee │ ├── SizedString.coffee │ ├── Tuple.coffee │ ├── Type.coffee │ ├── TypedMap.coffee │ ├── TypedObject.coffee │ ├── TypedSet.coffee │ ├── _index.coffee │ ├── alias.coffee │ ├── and.coffee │ ├── constraint.coffee │ ├── etc.coffee │ ├── maybe.coffee │ ├── named.coffee │ ├── not.coffee │ ├── or.coffee │ ├── promised.coffee │ └── unchecked.coffee └── tests ├── check ├── Tuple.coffee ├── TypedMap.coffee ├── TypedObject.coffee ├── TypedSet.coffee ├── array.coffee ├── object.coffee ├── sizedArray.coffee ├── special.coffee └── union.coffee ├── coffeeFixes.js ├── fixtures.coffee ├── fn.coffee ├── isValid ├── Integer.coffee ├── SizedString.coffee ├── Tuple.coffee ├── TypedMap.coffee ├── TypedObject.coffee ├── TypedSet.coffee ├── literal.coffee ├── named.coffee ├── native.coffee ├── object.coffee ├── operators.coffee ├── regexp.coffee ├── sizedArray.coffee ├── special.coffee ├── typedArray.coffee └── union.coffee ├── tools.coffee ├── typeError ├── Integer.coffee ├── SizedString.coffee ├── Tuple.coffee ├── TypedMap.coffee ├── TypedObject.coffee ├── TypedSet.coffee ├── alias.coffee ├── constraint.coffee ├── named.coffee ├── object.coffee ├── operators.coffee ├── result.coffee ├── sizedArray.coffee ├── typedArray.coffee ├── uncomposed.coffee └── union.coffee └── typeOf.coffee /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/.travis.yml -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/.vscode/tasks.json -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/README.md -------------------------------------------------------------------------------- /archived.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/archived.svg -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/babel.config.js -------------------------------------------------------------------------------- /benchmark/flow-runtime.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/benchmark/flow-runtime.js -------------------------------------------------------------------------------- /benchmark/floweret.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/benchmark/floweret.js -------------------------------------------------------------------------------- /benchmark/no-type-checking.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/benchmark/no-type-checking.js -------------------------------------------------------------------------------- /benchmark/objectmodel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/benchmark/objectmodel.js -------------------------------------------------------------------------------- /benchmark/rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/benchmark/rollup.config.js -------------------------------------------------------------------------------- /benchmark/runtypes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/benchmark/runtypes.js -------------------------------------------------------------------------------- /coffeelint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/coffeelint.json -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/package.json -------------------------------------------------------------------------------- /src/check.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/src/check.coffee -------------------------------------------------------------------------------- /src/fn.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/src/fn.coffee -------------------------------------------------------------------------------- /src/index.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/src/index.coffee -------------------------------------------------------------------------------- /src/isValid.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/src/isValid.coffee -------------------------------------------------------------------------------- /src/tools.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/src/tools.coffee -------------------------------------------------------------------------------- /src/typeError.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/src/typeError.coffee -------------------------------------------------------------------------------- /src/typeOf.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/src/typeOf.coffee -------------------------------------------------------------------------------- /src/types/Any.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/src/types/Any.coffee -------------------------------------------------------------------------------- /src/types/Integer.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/src/types/Integer.coffee -------------------------------------------------------------------------------- /src/types/SizedString.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/src/types/SizedString.coffee -------------------------------------------------------------------------------- /src/types/Tuple.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/src/types/Tuple.coffee -------------------------------------------------------------------------------- /src/types/Type.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/src/types/Type.coffee -------------------------------------------------------------------------------- /src/types/TypedMap.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/src/types/TypedMap.coffee -------------------------------------------------------------------------------- /src/types/TypedObject.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/src/types/TypedObject.coffee -------------------------------------------------------------------------------- /src/types/TypedSet.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/src/types/TypedSet.coffee -------------------------------------------------------------------------------- /src/types/_index.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/src/types/_index.coffee -------------------------------------------------------------------------------- /src/types/alias.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/src/types/alias.coffee -------------------------------------------------------------------------------- /src/types/and.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/src/types/and.coffee -------------------------------------------------------------------------------- /src/types/constraint.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/src/types/constraint.coffee -------------------------------------------------------------------------------- /src/types/etc.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/src/types/etc.coffee -------------------------------------------------------------------------------- /src/types/maybe.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/src/types/maybe.coffee -------------------------------------------------------------------------------- /src/types/named.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/src/types/named.coffee -------------------------------------------------------------------------------- /src/types/not.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/src/types/not.coffee -------------------------------------------------------------------------------- /src/types/or.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/src/types/or.coffee -------------------------------------------------------------------------------- /src/types/promised.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/src/types/promised.coffee -------------------------------------------------------------------------------- /src/types/unchecked.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/src/types/unchecked.coffee -------------------------------------------------------------------------------- /tests/check/Tuple.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/check/Tuple.coffee -------------------------------------------------------------------------------- /tests/check/TypedMap.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/check/TypedMap.coffee -------------------------------------------------------------------------------- /tests/check/TypedObject.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/check/TypedObject.coffee -------------------------------------------------------------------------------- /tests/check/TypedSet.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/check/TypedSet.coffee -------------------------------------------------------------------------------- /tests/check/array.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/check/array.coffee -------------------------------------------------------------------------------- /tests/check/object.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/check/object.coffee -------------------------------------------------------------------------------- /tests/check/sizedArray.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/check/sizedArray.coffee -------------------------------------------------------------------------------- /tests/check/special.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/check/special.coffee -------------------------------------------------------------------------------- /tests/check/union.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/check/union.coffee -------------------------------------------------------------------------------- /tests/coffeeFixes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/coffeeFixes.js -------------------------------------------------------------------------------- /tests/fixtures.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/fixtures.coffee -------------------------------------------------------------------------------- /tests/fn.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/fn.coffee -------------------------------------------------------------------------------- /tests/isValid/Integer.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/isValid/Integer.coffee -------------------------------------------------------------------------------- /tests/isValid/SizedString.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/isValid/SizedString.coffee -------------------------------------------------------------------------------- /tests/isValid/Tuple.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/isValid/Tuple.coffee -------------------------------------------------------------------------------- /tests/isValid/TypedMap.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/isValid/TypedMap.coffee -------------------------------------------------------------------------------- /tests/isValid/TypedObject.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/isValid/TypedObject.coffee -------------------------------------------------------------------------------- /tests/isValid/TypedSet.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/isValid/TypedSet.coffee -------------------------------------------------------------------------------- /tests/isValid/literal.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/isValid/literal.coffee -------------------------------------------------------------------------------- /tests/isValid/named.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/isValid/named.coffee -------------------------------------------------------------------------------- /tests/isValid/native.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/isValid/native.coffee -------------------------------------------------------------------------------- /tests/isValid/object.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/isValid/object.coffee -------------------------------------------------------------------------------- /tests/isValid/operators.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/isValid/operators.coffee -------------------------------------------------------------------------------- /tests/isValid/regexp.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/isValid/regexp.coffee -------------------------------------------------------------------------------- /tests/isValid/sizedArray.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/isValid/sizedArray.coffee -------------------------------------------------------------------------------- /tests/isValid/special.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/isValid/special.coffee -------------------------------------------------------------------------------- /tests/isValid/typedArray.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/isValid/typedArray.coffee -------------------------------------------------------------------------------- /tests/isValid/union.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/isValid/union.coffee -------------------------------------------------------------------------------- /tests/tools.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/tools.coffee -------------------------------------------------------------------------------- /tests/typeError/Integer.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/typeError/Integer.coffee -------------------------------------------------------------------------------- /tests/typeError/SizedString.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/typeError/SizedString.coffee -------------------------------------------------------------------------------- /tests/typeError/Tuple.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/typeError/Tuple.coffee -------------------------------------------------------------------------------- /tests/typeError/TypedMap.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/typeError/TypedMap.coffee -------------------------------------------------------------------------------- /tests/typeError/TypedObject.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/typeError/TypedObject.coffee -------------------------------------------------------------------------------- /tests/typeError/TypedSet.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/typeError/TypedSet.coffee -------------------------------------------------------------------------------- /tests/typeError/alias.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/typeError/alias.coffee -------------------------------------------------------------------------------- /tests/typeError/constraint.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/typeError/constraint.coffee -------------------------------------------------------------------------------- /tests/typeError/named.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/typeError/named.coffee -------------------------------------------------------------------------------- /tests/typeError/object.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/typeError/object.coffee -------------------------------------------------------------------------------- /tests/typeError/operators.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/typeError/operators.coffee -------------------------------------------------------------------------------- /tests/typeError/result.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/typeError/result.coffee -------------------------------------------------------------------------------- /tests/typeError/sizedArray.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/typeError/sizedArray.coffee -------------------------------------------------------------------------------- /tests/typeError/typedArray.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/typeError/typedArray.coffee -------------------------------------------------------------------------------- /tests/typeError/uncomposed.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/typeError/uncomposed.coffee -------------------------------------------------------------------------------- /tests/typeError/union.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/typeError/union.coffee -------------------------------------------------------------------------------- /tests/typeOf.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laurentpayot/floweret/HEAD/tests/typeOf.coffee --------------------------------------------------------------------------------