├── .eslintrc.json ├── .github └── workflows │ └── ci-test.yaml ├── .gitignore ├── HISTORY.md ├── LICENSE ├── README.md ├── babel-cjs.config.json ├── babel.config.json ├── benchmark └── benchmark.mjs ├── examples ├── any_type.mjs ├── basic_usage.mjs ├── browser.html ├── custom_type.mjs ├── merge_plain_functions.mjs ├── merge_typed_functions.mjs ├── multiple_signatures.mjs ├── recursion.mjs ├── rest_parameters.mjs └── type_conversion.mjs ├── package.json ├── src └── typed-function.mjs ├── test-lib ├── apps │ ├── cjsApp.cjs │ └── esmApp.mjs └── lib.test.cjs ├── test ├── any_type.test.mjs ├── browserEsmBuild.html ├── browserSrc.html ├── compose.test.mjs ├── construction.test.mjs ├── conversion.test.js ├── convert.test.mjs ├── errors.test.mjs ├── find.test.mjs ├── isTypedFunction.test.mjs ├── merge.test.mjs ├── onMismatch.test.mjs ├── resolve.test.mjs ├── rest_params.mjs ├── security.test.mjs ├── strictEqualArray.mjs └── union_types.test.mjs └── tools └── cjs └── package.json /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/workflows/ci-test.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/.github/workflows/ci-test.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/.gitignore -------------------------------------------------------------------------------- /HISTORY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/HISTORY.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/README.md -------------------------------------------------------------------------------- /babel-cjs.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/babel-cjs.config.json -------------------------------------------------------------------------------- /babel.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/babel.config.json -------------------------------------------------------------------------------- /benchmark/benchmark.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/benchmark/benchmark.mjs -------------------------------------------------------------------------------- /examples/any_type.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/examples/any_type.mjs -------------------------------------------------------------------------------- /examples/basic_usage.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/examples/basic_usage.mjs -------------------------------------------------------------------------------- /examples/browser.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/examples/browser.html -------------------------------------------------------------------------------- /examples/custom_type.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/examples/custom_type.mjs -------------------------------------------------------------------------------- /examples/merge_plain_functions.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/examples/merge_plain_functions.mjs -------------------------------------------------------------------------------- /examples/merge_typed_functions.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/examples/merge_typed_functions.mjs -------------------------------------------------------------------------------- /examples/multiple_signatures.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/examples/multiple_signatures.mjs -------------------------------------------------------------------------------- /examples/recursion.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/examples/recursion.mjs -------------------------------------------------------------------------------- /examples/rest_parameters.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/examples/rest_parameters.mjs -------------------------------------------------------------------------------- /examples/type_conversion.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/examples/type_conversion.mjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/package.json -------------------------------------------------------------------------------- /src/typed-function.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/src/typed-function.mjs -------------------------------------------------------------------------------- /test-lib/apps/cjsApp.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/test-lib/apps/cjsApp.cjs -------------------------------------------------------------------------------- /test-lib/apps/esmApp.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/test-lib/apps/esmApp.mjs -------------------------------------------------------------------------------- /test-lib/lib.test.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/test-lib/lib.test.cjs -------------------------------------------------------------------------------- /test/any_type.test.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/test/any_type.test.mjs -------------------------------------------------------------------------------- /test/browserEsmBuild.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/test/browserEsmBuild.html -------------------------------------------------------------------------------- /test/browserSrc.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/test/browserSrc.html -------------------------------------------------------------------------------- /test/compose.test.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/test/compose.test.mjs -------------------------------------------------------------------------------- /test/construction.test.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/test/construction.test.mjs -------------------------------------------------------------------------------- /test/conversion.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/test/conversion.test.js -------------------------------------------------------------------------------- /test/convert.test.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/test/convert.test.mjs -------------------------------------------------------------------------------- /test/errors.test.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/test/errors.test.mjs -------------------------------------------------------------------------------- /test/find.test.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/test/find.test.mjs -------------------------------------------------------------------------------- /test/isTypedFunction.test.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/test/isTypedFunction.test.mjs -------------------------------------------------------------------------------- /test/merge.test.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/test/merge.test.mjs -------------------------------------------------------------------------------- /test/onMismatch.test.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/test/onMismatch.test.mjs -------------------------------------------------------------------------------- /test/resolve.test.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/test/resolve.test.mjs -------------------------------------------------------------------------------- /test/rest_params.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/test/rest_params.mjs -------------------------------------------------------------------------------- /test/security.test.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/test/security.test.mjs -------------------------------------------------------------------------------- /test/strictEqualArray.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/test/strictEqualArray.mjs -------------------------------------------------------------------------------- /test/union_types.test.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josdejong/typed-function/HEAD/test/union_types.test.mjs -------------------------------------------------------------------------------- /tools/cjs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "commonjs" 3 | } 4 | --------------------------------------------------------------------------------