diff --git a/package.json b/package.json index c294ae0a33..6f0bac7cd2 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,9 @@ "@typescript-eslint/parser": "^6.0.0", "eslint": "^8.17.0", "eslint-config-prettier": "^9.0.0", + "eslint-import-resolver-typescript": "^3.6.1", "eslint-plugin-harmony": "^7.1.2", + "eslint-plugin-import": "^2.28.1", "eslint-plugin-yml": "~1.10.0", "husky": "^8.0.1", "npm-check-updates": "^16.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8fc6186e85..f40900eec9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -29,9 +29,15 @@ importers: eslint-config-prettier: specifier: ^9.0.0 version: 9.0.0(eslint@8.29.0) + eslint-import-resolver-typescript: + specifier: ^3.6.1 + version: 3.6.1(@typescript-eslint/parser@6.0.0)(eslint-plugin-import@2.28.1)(eslint@8.29.0) eslint-plugin-harmony: specifier: ^7.1.2 version: 7.1.2(@typescript-eslint/eslint-plugin@6.0.0)(eslint-config-prettier@9.0.0)(eslint@8.29.0)(typescript@5.0.4) + eslint-plugin-import: + specifier: ^2.28.1 + version: 2.28.1(@typescript-eslint/parser@6.0.0)(eslint-import-resolver-typescript@3.6.1)(eslint@8.29.0) eslint-plugin-yml: specifier: ~1.10.0 version: 1.10.0(eslint@8.29.0) @@ -2874,6 +2880,10 @@ packages: resolution: {integrity: sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==} dev: true + /@types/json5@0.0.29: + resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==} + dev: true + /@types/json5@0.0.30: resolution: {integrity: sha512-sqm9g7mHlPY/43fcSNrCYfOeX9zkTTK+euO5E6+CVijSMm5tTjkVdwdqRkY3ljjIAf8679vps5jKUoJBCLsMDA==} dev: false @@ -3482,6 +3492,13 @@ packages: /argparse@2.0.1: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + /array-buffer-byte-length@1.0.0: + resolution: {integrity: sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==} + dependencies: + call-bind: 1.0.5 + is-array-buffer: 3.0.2 + dev: true + /array-differ@3.0.0: resolution: {integrity: sha512-THtfYS6KtME/yIAhKjZ2ul7XI96lQGHRputJQHO80LAWQnuGP4iCIN8vdMRboGbIEYBwU33q8Tch1os2+X0kMg==} engines: {node: '>=8'} @@ -3491,6 +3508,17 @@ packages: resolution: {integrity: sha512-c5AMf34bKdvPhQ7tBGhqkgKNUzMr4WUs+WDtC2ZUGOUncbxKMTvqxYctiseW3+L4bA8ec+GcZ6/A/FW4m8ukng==} dev: true + /array-includes@3.1.7: + resolution: {integrity: sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.2.1 + es-abstract: 1.22.3 + get-intrinsic: 1.2.2 + is-string: 1.0.7 + dev: true + /array-iterate@2.0.1: resolution: {integrity: sha512-I1jXZMjAgCMmxT4qxXfPXa6SthSoE8h6gkSI9BGGNv8mP8G/v0blc+qFnZu6K42vTOiuME596QaLO0TP3Lk0xg==} dev: false @@ -3500,6 +3528,17 @@ packages: engines: {node: '>=8'} dev: true + /array.prototype.findlastindex@1.2.3: + resolution: {integrity: sha512-LzLoiOMAxvy+Gd3BAq3B7VeIgPdo+Q8hthvKtXybMvRV0jrXfJM/t8mw7nNlpEcVlVUnCnM2KSX4XU5HmpodOA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.2.1 + es-abstract: 1.22.3 + es-shim-unscopables: 1.0.0 + get-intrinsic: 1.2.2 + dev: true + /array.prototype.flat@1.3.1: resolution: {integrity: sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==} engines: {node: '>= 0.4'} @@ -3510,6 +3549,29 @@ packages: es-shim-unscopables: 1.0.0 dev: true + /array.prototype.flatmap@1.3.2: + resolution: {integrity: sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.2.1 + es-abstract: 1.22.3 + es-shim-unscopables: 1.0.0 + dev: true + + /arraybuffer.prototype.slice@1.0.2: + resolution: {integrity: sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw==} + engines: {node: '>= 0.4'} + dependencies: + array-buffer-byte-length: 1.0.0 + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 + get-intrinsic: 1.2.2 + is-array-buffer: 3.0.2 + is-shared-array-buffer: 1.0.2 + dev: true + /arrify@1.0.1: resolution: {integrity: sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==} engines: {node: '>=0.10.0'} @@ -3608,6 +3670,11 @@ packages: - terser dev: false + /available-typed-arrays@1.0.5: + resolution: {integrity: sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==} + engines: {node: '>= 0.4'} + dev: true + /babel-jest@29.5.0(@babel/core@7.22.1): resolution: {integrity: sha512-mA4eCDh5mSo2EcA9xQjVTpmbbNk32Zb3Q3QFQsNhaK56Q+yoXowzFodLux30HRgyOho5rsQ6B0P9QpMkvvnJ0Q==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -3939,6 +4006,14 @@ packages: get-intrinsic: 1.1.3 dev: true + /call-bind@1.0.5: + resolution: {integrity: sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==} + dependencies: + function-bind: 1.1.2 + get-intrinsic: 1.2.2 + set-function-length: 1.1.1 + dev: true + /callsites@3.1.0: resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} engines: {node: '>=6'} @@ -4376,6 +4451,17 @@ packages: engines: {node: '>=8'} dev: true + /debug@3.2.7: + resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + dependencies: + ms: 2.1.3 + dev: true + /debug@4.3.4: resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} engines: {node: '>=6.0'} @@ -4464,6 +4550,15 @@ packages: engines: {node: '>=10'} dev: true + /define-data-property@1.1.1: + resolution: {integrity: sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==} + engines: {node: '>= 0.4'} + dependencies: + get-intrinsic: 1.2.2 + gopd: 1.0.1 + has-property-descriptors: 1.0.0 + dev: true + /define-lazy-prop@2.0.0: resolution: {integrity: sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==} engines: {node: '>=8'} @@ -4482,6 +4577,15 @@ packages: object-keys: 1.1.1 dev: true + /define-properties@1.2.1: + resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==} + engines: {node: '>= 0.4'} + dependencies: + define-data-property: 1.1.1 + has-property-descriptors: 1.0.0 + object-keys: 1.1.1 + dev: true + /delegates@1.0.0: resolution: {integrity: sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==} dev: true @@ -4595,6 +4699,13 @@ packages: resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==} dev: false + /doctrine@2.1.0: + resolution: {integrity: sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==} + engines: {node: '>=0.10.0'} + dependencies: + esutils: 2.0.3 + dev: true + /doctrine@3.0.0: resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} engines: {node: '>=6.0.0'} @@ -4657,6 +4768,14 @@ packages: dev: true optional: true + /enhanced-resolve@5.15.0: + resolution: {integrity: sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==} + engines: {node: '>=10.13.0'} + dependencies: + graceful-fs: 4.2.11 + tapable: 2.2.1 + dev: true + /enquirer@2.3.6: resolution: {integrity: sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==} engines: {node: '>=8.6'} @@ -4709,10 +4828,64 @@ packages: unbox-primitive: 1.0.2 dev: true + /es-abstract@1.22.3: + resolution: {integrity: sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA==} + engines: {node: '>= 0.4'} + dependencies: + array-buffer-byte-length: 1.0.0 + arraybuffer.prototype.slice: 1.0.2 + available-typed-arrays: 1.0.5 + call-bind: 1.0.5 + es-set-tostringtag: 2.0.2 + es-to-primitive: 1.2.1 + function.prototype.name: 1.1.6 + get-intrinsic: 1.2.2 + get-symbol-description: 1.0.0 + globalthis: 1.0.3 + gopd: 1.0.1 + has-property-descriptors: 1.0.0 + has-proto: 1.0.1 + has-symbols: 1.0.3 + hasown: 2.0.0 + internal-slot: 1.0.6 + is-array-buffer: 3.0.2 + is-callable: 1.2.7 + is-negative-zero: 2.0.2 + is-regex: 1.1.4 + is-shared-array-buffer: 1.0.2 + is-string: 1.0.7 + is-typed-array: 1.1.12 + is-weakref: 1.0.2 + object-inspect: 1.13.1 + object-keys: 1.1.1 + object.assign: 4.1.4 + regexp.prototype.flags: 1.5.1 + safe-array-concat: 1.0.1 + safe-regex-test: 1.0.0 + string.prototype.trim: 1.2.8 + string.prototype.trimend: 1.0.7 + string.prototype.trimstart: 1.0.7 + typed-array-buffer: 1.0.0 + typed-array-byte-length: 1.0.0 + typed-array-byte-offset: 1.0.0 + typed-array-length: 1.0.4 + unbox-primitive: 1.0.2 + which-typed-array: 1.1.13 + dev: true + /es-module-lexer@1.2.1: resolution: {integrity: sha512-9978wrXM50Y4rTMmW5kXIC09ZdXQZqkE4mxhwkd8VbzsGkXGPgV4zWuqQJgCEzYngdo2dYDa0l8xhX4fkSwJSg==} dev: false + /es-set-tostringtag@2.0.2: + resolution: {integrity: sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q==} + engines: {node: '>= 0.4'} + dependencies: + get-intrinsic: 1.2.2 + has-tostringtag: 1.0.0 + hasown: 2.0.0 + dev: true + /es-shim-unscopables@1.0.0: resolution: {integrity: sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==} dependencies: @@ -4873,6 +5046,69 @@ packages: eslint: 8.29.0 dev: true + /eslint-import-resolver-node@0.3.9: + resolution: {integrity: sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==} + dependencies: + debug: 3.2.7 + is-core-module: 2.13.1 + resolve: 1.22.8 + transitivePeerDependencies: + - supports-color + dev: true + + /eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@6.0.0)(eslint-plugin-import@2.28.1)(eslint@8.29.0): + resolution: {integrity: sha512-xgdptdoi5W3niYeuQxKmzVDTATvLYqhpwmykwsh7f6HIOStGWEIL9iqZgQDF9u9OEzrRwR8no5q2VT+bjAujTg==} + engines: {node: ^14.18.0 || >=16.0.0} + peerDependencies: + eslint: '*' + eslint-plugin-import: '*' + dependencies: + debug: 4.3.4 + enhanced-resolve: 5.15.0 + eslint: 8.29.0 + eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.0.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1)(eslint@8.29.0) + eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.0.0)(eslint-import-resolver-typescript@3.6.1)(eslint@8.29.0) + fast-glob: 3.3.1 + get-tsconfig: 4.7.2 + is-core-module: 2.13.1 + is-glob: 4.0.3 + transitivePeerDependencies: + - '@typescript-eslint/parser' + - eslint-import-resolver-node + - eslint-import-resolver-webpack + - supports-color + dev: true + + /eslint-module-utils@2.8.0(@typescript-eslint/parser@6.0.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1)(eslint@8.29.0): + resolution: {integrity: sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==} + engines: {node: '>=4'} + peerDependencies: + '@typescript-eslint/parser': '*' + eslint: '*' + eslint-import-resolver-node: '*' + eslint-import-resolver-typescript: '*' + eslint-import-resolver-webpack: '*' + peerDependenciesMeta: + '@typescript-eslint/parser': + optional: true + eslint: + optional: true + eslint-import-resolver-node: + optional: true + eslint-import-resolver-typescript: + optional: true + eslint-import-resolver-webpack: + optional: true + dependencies: + '@typescript-eslint/parser': 6.0.0(eslint@8.29.0)(typescript@5.0.4) + debug: 3.2.7 + eslint: 8.29.0 + eslint-import-resolver-node: 0.3.9 + eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@6.0.0)(eslint-plugin-import@2.28.1)(eslint@8.29.0) + transitivePeerDependencies: + - supports-color + dev: true + /eslint-plugin-harmony@7.1.2(@typescript-eslint/eslint-plugin@6.0.0)(eslint-config-prettier@9.0.0)(eslint@8.29.0)(typescript@5.0.4): resolution: {integrity: sha512-45MPltz+iTWdJ4FTXNOy3fB1kgsM8XFB6qum24qsclb9yh3kkBuk9Myzu8Rcyv8u/GldcTZQJ1xvHBNneISk9Q==} peerDependencies: @@ -4894,6 +5130,41 @@ packages: - typescript dev: true + /eslint-plugin-import@2.28.1(@typescript-eslint/parser@6.0.0)(eslint-import-resolver-typescript@3.6.1)(eslint@8.29.0): + resolution: {integrity: sha512-9I9hFlITvOV55alzoKBI+K9q74kv0iKMeY6av5+umsNwayt59fz692daGyjR+oStBQgx6nwR9rXldDev3Clw+A==} + engines: {node: '>=4'} + peerDependencies: + '@typescript-eslint/parser': '*' + eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 + peerDependenciesMeta: + '@typescript-eslint/parser': + optional: true + dependencies: + '@typescript-eslint/parser': 6.0.0(eslint@8.29.0)(typescript@5.0.4) + array-includes: 3.1.7 + array.prototype.findlastindex: 1.2.3 + array.prototype.flat: 1.3.1 + array.prototype.flatmap: 1.3.2 + debug: 3.2.7 + doctrine: 2.1.0 + eslint: 8.29.0 + eslint-import-resolver-node: 0.3.9 + eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.0.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1)(eslint@8.29.0) + has: 1.0.3 + is-core-module: 2.13.1 + is-glob: 4.0.3 + minimatch: 3.1.2 + object.fromentries: 2.0.7 + object.groupby: 1.0.1 + object.values: 1.1.7 + semver: 6.3.1 + tsconfig-paths: 3.14.2 + transitivePeerDependencies: + - eslint-import-resolver-typescript + - eslint-import-resolver-webpack + - supports-color + dev: true + /eslint-plugin-yml@1.10.0(eslint@8.29.0): resolution: {integrity: sha512-53SUwuNDna97lVk38hL/5++WXDuugPM9SUQ1T645R0EHMRCdBIIxGye/oOX2qO3FQ7aImxaUZJU/ju+NMUBrLQ==} engines: {node: ^14.17.0 || >=16.0.0} @@ -5151,6 +5422,17 @@ packages: merge2: 1.4.1 micromatch: 4.0.5 + /fast-glob@3.3.1: + resolution: {integrity: sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==} + engines: {node: '>=8.6.0'} + dependencies: + '@nodelib/fs.stat': 2.0.5 + '@nodelib/fs.walk': 1.2.8 + glob-parent: 5.1.2 + merge2: 1.4.1 + micromatch: 4.0.5 + dev: true + /fast-json-stable-stringify@2.1.0: resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} dev: true @@ -5235,6 +5517,12 @@ packages: resolution: {integrity: sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==} dev: true + /for-each@0.3.3: + resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==} + dependencies: + is-callable: 1.2.7 + dev: true + /form-data-encoder@2.1.4: resolution: {integrity: sha512-yDYSgNMraqvnxiEXO4hi88+YZxaHC6QKzb5N84iRCTDeRO7ZALpir/lVmf/uXUhnwUr2O4HU8s/n6x+yNjQkHw==} engines: {node: '>= 14.17'} @@ -5293,6 +5581,10 @@ packages: /function-bind@1.1.1: resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==} + /function-bind@1.1.2: + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} + dev: true + /function.prototype.name@1.1.5: resolution: {integrity: sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==} engines: {node: '>= 0.4'} @@ -5303,6 +5595,16 @@ packages: functions-have-names: 1.2.3 dev: true + /function.prototype.name@1.1.6: + resolution: {integrity: sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 + functions-have-names: 1.2.3 + dev: true + /functions-have-names@1.2.3: resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==} dev: true @@ -5338,6 +5640,15 @@ packages: has-symbols: 1.0.3 dev: true + /get-intrinsic@1.2.2: + resolution: {integrity: sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==} + dependencies: + function-bind: 1.1.2 + has-proto: 1.0.1 + has-symbols: 1.0.3 + hasown: 2.0.0 + dev: true + /get-package-type@0.1.0: resolution: {integrity: sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==} engines: {node: '>=8.0.0'} @@ -5360,6 +5671,12 @@ packages: get-intrinsic: 1.1.3 dev: true + /get-tsconfig@4.7.2: + resolution: {integrity: sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A==} + dependencies: + resolve-pkg-maps: 1.0.0 + dev: true + /git-raw-commits@2.0.11: resolution: {integrity: sha512-VnctFhw+xfj8Va1xtfEqCUD2XDrbAPSJx+hSrE5K7fGdjZruW7XV+QOrN7LF/RJyvspRiD2I0asWsxFp0ya26A==} engines: {node: '>=10'} @@ -5450,6 +5767,13 @@ packages: type-fest: 0.20.2 dev: true + /globalthis@1.0.3: + resolution: {integrity: sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==} + engines: {node: '>= 0.4'} + dependencies: + define-properties: 1.2.1 + dev: true + /globby@11.1.0: resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} engines: {node: '>=10'} @@ -5462,6 +5786,12 @@ packages: slash: 3.0.0 dev: true + /gopd@1.0.1: + resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==} + dependencies: + get-intrinsic: 1.2.2 + dev: true + /got@12.6.1: resolution: {integrity: sha512-mThBblvlAF1d4O5oqyvN+ZxLAYwIJK7bpMxgYqPD9okW0C3qm5FFn7k811QrcuEBwaogR3ngOFoCfs6mRv7teQ==} engines: {node: '>=14.16'} @@ -5533,6 +5863,11 @@ packages: get-intrinsic: 1.1.3 dev: true + /has-proto@1.0.1: + resolution: {integrity: sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==} + engines: {node: '>= 0.4'} + dev: true + /has-symbols@1.0.3: resolution: {integrity: sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==} engines: {node: '>= 0.4'} @@ -5560,6 +5895,13 @@ packages: dependencies: function-bind: 1.1.1 + /hasown@2.0.0: + resolution: {integrity: sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==} + engines: {node: '>= 0.4'} + dependencies: + function-bind: 1.1.2 + dev: true + /hast-util-from-parse5@7.1.2: resolution: {integrity: sha512-Nz7FfPBuljzsN3tCQ4kCBKqdNhQE2l0Tn+X1ubgKBPRoiDIu1mL08Cfw4k7q71+Duyaw7DXDN+VTAp4Vh3oCOw==} dependencies: @@ -5839,6 +6181,15 @@ packages: side-channel: 1.0.4 dev: true + /internal-slot@1.0.6: + resolution: {integrity: sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg==} + engines: {node: '>= 0.4'} + dependencies: + get-intrinsic: 1.2.2 + hasown: 2.0.0 + side-channel: 1.0.4 + dev: true + /invariant@2.2.4: resolution: {integrity: sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==} dependencies: @@ -5849,6 +6200,14 @@ packages: resolution: {integrity: sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==} dev: true + /is-array-buffer@3.0.2: + resolution: {integrity: sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==} + dependencies: + call-bind: 1.0.5 + get-intrinsic: 1.2.2 + is-typed-array: 1.1.12 + dev: true + /is-arrayish@0.2.1: resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} dev: true @@ -5894,6 +6253,12 @@ packages: dependencies: has: 1.0.3 + /is-core-module@2.13.1: + resolution: {integrity: sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==} + dependencies: + hasown: 2.0.0 + dev: true + /is-date-object@1.0.5: resolution: {integrity: sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==} engines: {node: '>= 0.4'} @@ -6056,6 +6421,13 @@ packages: text-extensions: 2.4.0 dev: true + /is-typed-array@1.1.12: + resolution: {integrity: sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==} + engines: {node: '>= 0.4'} + dependencies: + which-typed-array: 1.1.13 + dev: true + /is-typedarray@1.0.0: resolution: {integrity: sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==} dev: true @@ -6092,6 +6464,10 @@ packages: engines: {node: '>=12'} dev: true + /isarray@2.0.5: + resolution: {integrity: sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==} + dev: true + /isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} @@ -6661,6 +7037,13 @@ packages: resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} dev: true + /json5@1.0.2: + resolution: {integrity: sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==} + hasBin: true + dependencies: + minimist: 1.2.7 + dev: true + /json5@2.2.3: resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==} engines: {node: '>=6'} @@ -7663,7 +8046,7 @@ packages: engines: {node: '>=10'} dependencies: hosted-git-info: 4.1.0 - is-core-module: 2.11.0 + is-core-module: 2.13.1 semver: 7.5.4 validate-npm-package-license: 3.0.4 dev: true @@ -7673,7 +8056,7 @@ packages: engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} dependencies: hosted-git-info: 5.2.1 - is-core-module: 2.11.0 + is-core-module: 2.13.1 semver: 7.5.4 validate-npm-package-license: 3.0.4 dev: true @@ -7842,6 +8225,10 @@ packages: resolution: {integrity: sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==} dev: true + /object-inspect@1.13.1: + resolution: {integrity: sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==} + dev: true + /object-keys@1.1.1: resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==} engines: {node: '>= 0.4'} @@ -7857,6 +8244,33 @@ packages: object-keys: 1.1.1 dev: true + /object.fromentries@2.0.7: + resolution: {integrity: sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.2.1 + es-abstract: 1.22.3 + dev: true + + /object.groupby@1.0.1: + resolution: {integrity: sha512-HqaQtqLnp/8Bn4GL16cj+CUYbnpe1bh0TtEaWvybszDG4tgxCJuRpV8VGuvNaI1fAnI4lUJzDG55MXcOH4JZcQ==} + dependencies: + call-bind: 1.0.2 + define-properties: 1.2.1 + es-abstract: 1.22.3 + get-intrinsic: 1.2.2 + dev: true + + /object.values@1.1.7: + resolution: {integrity: sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.2.1 + es-abstract: 1.22.3 + dev: true + /once@1.4.0: resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} dependencies: @@ -8495,6 +8909,15 @@ packages: functions-have-names: 1.2.3 dev: true + /regexp.prototype.flags@1.5.1: + resolution: {integrity: sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.5 + define-properties: 1.2.1 + set-function-name: 2.0.1 + dev: true + /regexpp@3.2.0: resolution: {integrity: sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==} engines: {node: '>=8'} @@ -8643,6 +9066,10 @@ packages: global-dirs: 0.1.1 dev: true + /resolve-pkg-maps@1.0.0: + resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} + dev: true + /resolve.exports@2.0.2: resolution: {integrity: sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==} engines: {node: '>=10'} @@ -8662,6 +9089,15 @@ packages: path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 + /resolve@1.22.8: + resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} + hasBin: true + dependencies: + is-core-module: 2.13.1 + path-parse: 1.0.7 + supports-preserve-symlinks-flag: 1.0.0 + dev: true + /responselike@3.0.0: resolution: {integrity: sha512-40yHxbNcl2+rzXvZuVkrYohathsSJlMTXKryG5y8uciHv1+xDLHQpgjG64JUO9nrEq2jGLH6IZ8BcZyw3wrweg==} engines: {node: '>=14.16'} @@ -8782,6 +9218,16 @@ packages: mri: 1.2.0 dev: false + /safe-array-concat@1.0.1: + resolution: {integrity: sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==} + engines: {node: '>=0.4'} + dependencies: + call-bind: 1.0.5 + get-intrinsic: 1.2.2 + has-symbols: 1.0.3 + isarray: 2.0.5 + dev: true + /safe-buffer@5.2.1: resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} @@ -8891,6 +9337,25 @@ packages: resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} dev: true + /set-function-length@1.1.1: + resolution: {integrity: sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==} + engines: {node: '>= 0.4'} + dependencies: + define-data-property: 1.1.1 + get-intrinsic: 1.2.2 + gopd: 1.0.1 + has-property-descriptors: 1.0.0 + dev: true + + /set-function-name@2.0.1: + resolution: {integrity: sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==} + engines: {node: '>= 0.4'} + dependencies: + define-data-property: 1.1.1 + functions-have-names: 1.2.3 + has-property-descriptors: 1.0.0 + dev: true + /shebang-command@1.2.0: resolution: {integrity: sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==} engines: {node: '>=0.10.0'} @@ -9217,6 +9682,15 @@ packages: es-abstract: 1.20.4 dev: true + /string.prototype.trim@1.2.8: + resolution: {integrity: sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 + dev: true + /string.prototype.trimend@1.0.6: resolution: {integrity: sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==} dependencies: @@ -9225,6 +9699,14 @@ packages: es-abstract: 1.20.4 dev: true + /string.prototype.trimend@1.0.7: + resolution: {integrity: sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==} + dependencies: + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 + dev: true + /string.prototype.trimstart@1.0.6: resolution: {integrity: sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==} dependencies: @@ -9233,6 +9715,14 @@ packages: es-abstract: 1.20.4 dev: true + /string.prototype.trimstart@1.0.7: + resolution: {integrity: sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==} + dependencies: + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 + dev: true + /string_decoder@1.3.0: resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} dependencies: @@ -9343,6 +9833,11 @@ packages: tslib: 2.5.2 dev: false + /tapable@2.2.1: + resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==} + engines: {node: '>=6'} + dev: true + /tar@6.1.15: resolution: {integrity: sha512-/zKt9UyngnxIT/EAGYuxaMYgOIJiP81ab9ZfkILq4oNLPFX50qyYmu7jRj9qeXoxmJHjGlbH0+cm2uy1WCs10A==} engines: {node: '>=10'} @@ -9523,6 +10018,15 @@ packages: yn: 3.1.1 dev: true + /tsconfig-paths@3.14.2: + resolution: {integrity: sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==} + dependencies: + '@types/json5': 0.0.29 + json5: 1.0.2 + minimist: 1.2.7 + strip-bom: 3.0.0 + dev: true + /tsconfig-resolver@3.0.1: resolution: {integrity: sha512-ZHqlstlQF449v8glscGRXzL6l2dZvASPCdXJRWG4gHEZlUVx2Jtmr+a2zeVG4LCsKhDXKRj5R3h0C/98UcVAQg==} dependencies: @@ -9698,6 +10202,44 @@ packages: unpartial: 1.0.4 dev: true + /typed-array-buffer@1.0.0: + resolution: {integrity: sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.5 + get-intrinsic: 1.2.2 + is-typed-array: 1.1.12 + dev: true + + /typed-array-byte-length@1.0.0: + resolution: {integrity: sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.5 + for-each: 0.3.3 + has-proto: 1.0.1 + is-typed-array: 1.1.12 + dev: true + + /typed-array-byte-offset@1.0.0: + resolution: {integrity: sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==} + engines: {node: '>= 0.4'} + dependencies: + available-typed-arrays: 1.0.5 + call-bind: 1.0.5 + for-each: 0.3.3 + has-proto: 1.0.1 + is-typed-array: 1.1.12 + dev: true + + /typed-array-length@1.0.4: + resolution: {integrity: sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==} + dependencies: + call-bind: 1.0.5 + for-each: 0.3.3 + is-typed-array: 1.1.12 + dev: true + /typedarray-to-buffer@3.1.5: resolution: {integrity: sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==} dependencies: @@ -10195,6 +10737,17 @@ packages: load-yaml-file: 0.2.0 path-exists: 4.0.0 + /which-typed-array@1.1.13: + resolution: {integrity: sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow==} + engines: {node: '>= 0.4'} + dependencies: + available-typed-arrays: 1.0.5 + call-bind: 1.0.5 + for-each: 0.3.3 + gopd: 1.0.1 + has-tostringtag: 1.0.0 + dev: true + /which@1.3.1: resolution: {integrity: sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==} hasBin: true diff --git a/type-plus/.eslintrc.json b/type-plus/.eslintrc.json index cca56effa4..091c4ffdd0 100644 --- a/type-plus/.eslintrc.json +++ b/type-plus/.eslintrc.json @@ -12,16 +12,31 @@ ], "overrides": [ { - "extends": "plugin:harmony/ts-recommended", + "extends": [ + "plugin:harmony/ts-recommended", + "plugin:import/recommended", + "plugin:import/typescript" + ], + "settings": { + "import/resolver": { + "typescript": true + } + }, "files": [ "*.ts", "*.tsx" ], + "plugins": [ + "import" + ], "rules": { "@typescript-eslint/ban-types": "off", "@typescript-eslint/no-unused-vars": "off", "no-use-before-define": "off", - "brace-style": ["error", "1tbs"], + "brace-style": [ + "error", + "1tbs" + ], "harmony/ts-member-delimiter-style": [ "error", { @@ -32,7 +47,8 @@ "delimiter": "comma" } } - ] + ], + "import/export": "off" } } ] diff --git a/type-plus/ts/any/any.spec.ts b/type-plus/ts/any/any.spec.ts index 28df9ec9b0..f3e534ee80 100644 --- a/type-plus/ts/any/any.spec.ts +++ b/type-plus/ts/any/any.spec.ts @@ -1,4 +1,5 @@ import { test } from '@jest/globals' + import { testType } from '../index.js' test('union behavior of any', () => { diff --git a/type-plus/ts/any/is_any.spec.ts b/type-plus/ts/any/is_any.spec.ts index 68eeff0fe5..956d9baae4 100644 --- a/type-plus/ts/any/is_any.spec.ts +++ b/type-plus/ts/any/is_any.spec.ts @@ -1,5 +1,6 @@ import { describe, it } from '@jest/globals' -import { testType, type $Else, type $Then, type IsAny } from '../index.js' + +import { type $Else, type $Then, type IsAny,testType } from '../index.js' // alternative implementation // export type IsAny< diff --git a/type-plus/ts/any/is_any.ts b/type-plus/ts/any/is_any.ts index 96b39f8cb1..fbf5e0b35c 100644 --- a/type-plus/ts/any/is_any.ts +++ b/type-plus/ts/any/is_any.ts @@ -2,8 +2,8 @@ import type { $Never } from '../never/never.js' import type { $SpecialType } from '../type_plus/$special_type.js' import type { $InputOptions } from '../type_plus/branch/$input_options.js' import type { $ResolveBranch } from '../type_plus/branch/$resolve_branch.js' -import type { $SelectionOptions } from '../type_plus/branch/$selection_options.js' import type { $Else, $SelectionBranch, $SelectionPredicate, $Then } from '../type_plus/branch/$selection.js' +import type { $SelectionOptions } from '../type_plus/branch/$selection_options.js' import type { $Unknown } from '../unknown/unknown.js' /** diff --git a/type-plus/ts/any/is_not_any.spec.ts b/type-plus/ts/any/is_not_any.spec.ts index 6bbcd4933e..5d8ca4d57e 100644 --- a/type-plus/ts/any/is_not_any.spec.ts +++ b/type-plus/ts/any/is_not_any.spec.ts @@ -1,5 +1,6 @@ import { describe, it } from '@jest/globals' -import { testType, type $Else, type $Then, type IsNotAny } from '../index.js' + +import { type $Else, type $Then, type IsNotAny,testType } from '../index.js' // alternative implementation // export type IsNotAny< diff --git a/type-plus/ts/any/is_not_any.ts b/type-plus/ts/any/is_not_any.ts index 8a24524b23..515494348c 100644 --- a/type-plus/ts/any/is_not_any.ts +++ b/type-plus/ts/any/is_not_any.ts @@ -2,8 +2,8 @@ import type { $Never } from '../never/never.js' import type { $SpecialType } from '../type_plus/$special_type.js' import type { $InputOptions } from '../type_plus/branch/$input_options.js' import type { $ResolveBranch } from '../type_plus/branch/$resolve_branch.js' -import type { $SelectionOptions } from '../type_plus/branch/$selection_options.js' import type { $Else, $SelectionBranch, $SelectionPredicate, $Then } from '../type_plus/branch/$selection.js' +import type { $SelectionOptions } from '../type_plus/branch/$selection_options.js' import type { $Unknown } from '../unknown/unknown.js' /** diff --git a/type-plus/ts/array/array.at.spec.ts b/type-plus/ts/array/array.at.spec.ts index 08ae5f3def..8780b19ceb 100644 --- a/type-plus/ts/array/array.at.spec.ts +++ b/type-plus/ts/array/array.at.spec.ts @@ -1,5 +1,6 @@ import { expect, it, test } from '@jest/globals' -import { testType, ArrayPlus } from '../index.js' + +import { ArrayPlus,testType } from '../index.js' test('behavior of array.at()', () => { const array = [1, 2, '3'] diff --git a/type-plus/ts/array/array.entries.spec.ts b/type-plus/ts/array/array.entries.spec.ts index e17d8da17f..aa26f4db35 100644 --- a/type-plus/ts/array/array.entries.spec.ts +++ b/type-plus/ts/array/array.entries.spec.ts @@ -1,5 +1,6 @@ import { it, test } from '@jest/globals' -import { testType, type ArrayPlus } from '../index.js' + +import { type ArrayPlus,testType } from '../index.js' test('behavior of array.entries()', () => { const array = [1, 2, '3'] diff --git a/type-plus/ts/array/array.find_last.spec.ts b/type-plus/ts/array/array.find_last.spec.ts index d4ca41a289..e35a20f039 100644 --- a/type-plus/ts/array/array.find_last.spec.ts +++ b/type-plus/ts/array/array.find_last.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { ArrayPlus, testType, type FindLast } from '../index.js' + +import { ArrayPlus, type FindLast,testType } from '../index.js' it('returns T | undefined for T[] if T satisfies Criteria', () => { testType.equal, never>(true) diff --git a/type-plus/ts/array/array.push.spec.ts b/type-plus/ts/array/array.push.spec.ts index ea02fa2463..6db5f68e78 100644 --- a/type-plus/ts/array/array.push.spec.ts +++ b/type-plus/ts/array/array.push.spec.ts @@ -1,4 +1,5 @@ import { expect, it, test } from '@jest/globals' + import { testType } from '../index.js' test('behavior of array.push()', () => { diff --git a/type-plus/ts/array/array.reverse.spec.ts b/type-plus/ts/array/array.reverse.spec.ts index e59a12e8ab..d4af7cf063 100644 --- a/type-plus/ts/array/array.reverse.spec.ts +++ b/type-plus/ts/array/array.reverse.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import type { ArrayPlus } from '../index.js' import { testType } from '../index.js' diff --git a/type-plus/ts/array/array.some.spec.ts b/type-plus/ts/array/array.some.spec.ts index 38cfaff834..51d9c0ea98 100644 --- a/type-plus/ts/array/array.some.spec.ts +++ b/type-plus/ts/array/array.some.spec.ts @@ -1,5 +1,6 @@ import { describe, it } from '@jest/globals' -import { testType, type ArrayPlus, type Some } from '../index.js' + +import { type ArrayPlus, type Some,testType } from '../index.js' it('returns true if array satisfies Criteria', () => { testType.true>(true) diff --git a/type-plus/ts/array/array.spec.ts b/type-plus/ts/array/array.spec.ts index 45148426b8..5fcdb4eb8d 100644 --- a/type-plus/ts/array/array.spec.ts +++ b/type-plus/ts/array/array.spec.ts @@ -1,4 +1,5 @@ import { test } from '@jest/globals' + import { testType } from '../index.js' test('union behavior of array', () => { diff --git a/type-plus/ts/array/array.unshift.spec.ts b/type-plus/ts/array/array.unshift.spec.ts index b8d43b8a48..3c4ce90896 100644 --- a/type-plus/ts/array/array.unshift.spec.ts +++ b/type-plus/ts/array/array.unshift.spec.ts @@ -1,4 +1,5 @@ import { expect, it, test } from '@jest/globals' + import { testType } from '../index.js' test('behavior of array.push()', () => { diff --git a/type-plus/ts/array/array_plus.common_prop_keys.spec.ts b/type-plus/ts/array/array_plus.common_prop_keys.spec.ts index e39c847bb0..de8f9f7a46 100644 --- a/type-plus/ts/array/array_plus.common_prop_keys.spec.ts +++ b/type-plus/ts/array/array_plus.common_prop_keys.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, ArrayPlus } from '../index.js' + +import { ArrayPlus,testType } from '../index.js' it('never returns never', () => { testType.equal, never>(true) diff --git a/type-plus/ts/array/array_plus.concat.spec.ts b/type-plus/ts/array/array_plus.concat.spec.ts index 08e7f898f0..c56c8a0ca7 100644 --- a/type-plus/ts/array/array_plus.concat.spec.ts +++ b/type-plus/ts/array/array_plus.concat.spec.ts @@ -1,5 +1,6 @@ import { expect, it, test } from '@jest/globals' -import { isType, testType, type ArrayPlus } from '../index.js' + +import { type ArrayPlus,isType, testType } from '../index.js' test('behavior of array.concat()', () => { const a1 = [1, 2, 3] diff --git a/type-plus/ts/array/array_plus.drop_match.spec.ts b/type-plus/ts/array/array_plus.drop_match.spec.ts index 75cb1daff6..cfbedd31a4 100644 --- a/type-plus/ts/array/array_plus.drop_match.spec.ts +++ b/type-plus/ts/array/array_plus.drop_match.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type ArrayPlus } from '../index.js' + +import { type ArrayPlus,testType } from '../index.js' it('drop all types gets never[]', () => { type A = ArrayPlus.DropMatch, string> diff --git a/type-plus/ts/array/array_plus.element_match.unit.ts b/type-plus/ts/array/array_plus.element_match.unit.ts index 3671998260..e24febc8d0 100644 --- a/type-plus/ts/array/array_plus.element_match.unit.ts +++ b/type-plus/ts/array/array_plus.element_match.unit.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from '../index.js' import { type ElementMatch } from './array_plus.element_match.js' diff --git a/type-plus/ts/array/array_plus.filter.spec.ts b/type-plus/ts/array/array_plus.filter.spec.ts index 11a8e6c1d8..40833fec14 100644 --- a/type-plus/ts/array/array_plus.filter.spec.ts +++ b/type-plus/ts/array/array_plus.filter.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type ArrayPlus } from '../index.js' + +import { type ArrayPlus,testType } from '../index.js' it('returns never for never case', () => { testType.equal, never>(true) diff --git a/type-plus/ts/array/array_plus.find.spec.ts b/type-plus/ts/array/array_plus.find.spec.ts index 1ee06ef10f..7822a2eab2 100644 --- a/type-plus/ts/array/array_plus.find.spec.ts +++ b/type-plus/ts/array/array_plus.find.spec.ts @@ -1,5 +1,6 @@ import { it, test } from '@jest/globals' -import { testType, type ArrayPlus } from '../index.js' + +import { type ArrayPlus,testType } from '../index.js' test('behavior of array.find()', () => { const array = [1, 2, '3'] diff --git a/type-plus/ts/array/array_plus.index_at.spec.ts b/type-plus/ts/array/array_plus.index_at.spec.ts index b1cdac6137..325cb2867c 100644 --- a/type-plus/ts/array/array_plus.index_at.spec.ts +++ b/type-plus/ts/array/array_plus.index_at.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from '../index.js' import type { IndexAt } from './array_plus.js' diff --git a/type-plus/ts/array/array_plus.is_index_out_of_bound.spec.ts b/type-plus/ts/array/array_plus.is_index_out_of_bound.spec.ts index d51313e971..dbd1a2ebf6 100644 --- a/type-plus/ts/array/array_plus.is_index_out_of_bound.spec.ts +++ b/type-plus/ts/array/array_plus.is_index_out_of_bound.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type ArrayPlus } from '../index.js' + +import { type ArrayPlus,testType } from '../index.js' it('returns true for never', () => { testType.true>(true) diff --git a/type-plus/ts/array/array_plus.is_readonly.spec.ts b/type-plus/ts/array/array_plus.is_readonly.spec.ts index cba56b40bb..a9734acdc5 100644 --- a/type-plus/ts/array/array_plus.is_readonly.spec.ts +++ b/type-plus/ts/array/array_plus.is_readonly.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, ArrayPlus } from '../index.js' + +import { ArrayPlus,testType } from '../index.js' testType.equal>(true) diff --git a/type-plus/ts/array/array_plus.spec.ts b/type-plus/ts/array/array_plus.spec.ts index 8e15730066..4a4eb92c9a 100644 --- a/type-plus/ts/array/array_plus.spec.ts +++ b/type-plus/ts/array/array_plus.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { ArrayPlus, testType } from '../index.js' it('exports all array types and utils', () => { diff --git a/type-plus/ts/array/array_plus.split_at.spec.ts b/type-plus/ts/array/array_plus.split_at.spec.ts index c50ba17f3a..3c4294a136 100644 --- a/type-plus/ts/array/array_plus.split_at.spec.ts +++ b/type-plus/ts/array/array_plus.split_at.spec.ts @@ -1,4 +1,5 @@ import { expect, it, test } from '@jest/globals' + import { testType } from '../index.js' import type { SplitAt } from './array_plus.js' diff --git a/type-plus/ts/array/array_type.not_array_type.spec.ts b/type-plus/ts/array/array_type.not_array_type.spec.ts index 70bf087f1c..8f25a97669 100644 --- a/type-plus/ts/array/array_type.not_array_type.spec.ts +++ b/type-plus/ts/array/array_type.not_array_type.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type NotArrayType } from '../index.js' + +import { type NotArrayType,testType } from '../index.js' it('returns never if T is array', () => { testType.never>(true) diff --git a/type-plus/ts/array/array_type.spec.ts b/type-plus/ts/array/array_type.spec.ts index a3cf2f128c..db3b97158b 100644 --- a/type-plus/ts/array/array_type.spec.ts +++ b/type-plus/ts/array/array_type.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type ArrayType } from '../index.js' + +import { type ArrayType,testType } from '../index.js' it('returns T if T is array', () => { testType.equal, any[]>(true) diff --git a/type-plus/ts/array/filter.spec.ts b/type-plus/ts/array/filter.spec.ts index 421e16cfd4..a1cd837d0a 100644 --- a/type-plus/ts/array/filter.spec.ts +++ b/type-plus/ts/array/filter.spec.ts @@ -1,5 +1,6 @@ import { describe, it } from '@jest/globals' -import { testType, type Filter, type KeepMatch } from '../index.js' + +import { type Filter, type KeepMatch,testType } from '../index.js' describe('Filter', () => { describe('A is array', () => { diff --git a/type-plus/ts/array/find_first.spec.ts b/type-plus/ts/array/find_first.spec.ts index 55e525879d..d17f1e9905 100644 --- a/type-plus/ts/array/find_first.spec.ts +++ b/type-plus/ts/array/find_first.spec.ts @@ -1,5 +1,6 @@ import { describe, it } from '@jest/globals' -import { testType, type FindFirst } from '../index.js' + +import { type FindFirst,testType } from '../index.js' describe('For Array', () => { it('returns never if the type in the array does not satisfy the criteria', () => { diff --git a/type-plus/ts/array/head.spec.ts b/type-plus/ts/array/head.spec.ts index 16f6c2d9f2..5b6c03891b 100644 --- a/type-plus/ts/array/head.spec.ts +++ b/type-plus/ts/array/head.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type Head } from '../index.js' + +import { type Head,testType } from '../index.js' it('returns never for empty tuple', () => { testType.equal, never>(true) diff --git a/type-plus/ts/array/intersect_of_props.spec.ts b/type-plus/ts/array/intersect_of_props.spec.ts index f784c488a5..ee2083b90b 100644 --- a/type-plus/ts/array/intersect_of_props.spec.ts +++ b/type-plus/ts/array/intersect_of_props.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IntersectOfProps } from '../index.js' + +import { type IntersectOfProps,testType } from '../index.js' it('gets property from single value tuple', () => { type S = [{ a: number }] diff --git a/type-plus/ts/array/is_array.spec.ts b/type-plus/ts/array/is_array.spec.ts index 08891426db..67b1ba9943 100644 --- a/type-plus/ts/array/is_array.spec.ts +++ b/type-plus/ts/array/is_array.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsArray } from '../index.js' + +import { type IsArray,testType } from '../index.js' it('returns true if T is array', () => { testType.true>(true) diff --git a/type-plus/ts/array/is_not_array.spec.ts b/type-plus/ts/array/is_not_array.spec.ts index 4ad1b53cd4..f3ab594374 100644 --- a/type-plus/ts/array/is_not_array.spec.ts +++ b/type-plus/ts/array/is_not_array.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsNotArray } from '../index.js' + +import { type IsNotArray,testType } from '../index.js' it('returns false if T is array', () => { testType.false>(true) diff --git a/type-plus/ts/array/is_not_strict_array.spec.ts b/type-plus/ts/array/is_not_strict_array.spec.ts index 52eab2f84c..129ccfb821 100644 --- a/type-plus/ts/array/is_not_strict_array.spec.ts +++ b/type-plus/ts/array/is_not_strict_array.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsNotStrictArray } from '../index.js' + +import { type IsNotStrictArray,testType } from '../index.js' it('returns false if T is array', () => { testType.false>(true) diff --git a/type-plus/ts/array/is_strict_array.spec.ts b/type-plus/ts/array/is_strict_array.spec.ts index cf9356ea0e..35c4e5be8e 100644 --- a/type-plus/ts/array/is_strict_array.spec.ts +++ b/type-plus/ts/array/is_strict_array.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsStrictArray } from '../index.js' + +import { type IsStrictArray,testType } from '../index.js' it('returns true if T is array', () => { testType.true>(true) diff --git a/type-plus/ts/array/last.spec.ts b/type-plus/ts/array/last.spec.ts index 20cb05cd51..72503d5500 100644 --- a/type-plus/ts/array/last.spec.ts +++ b/type-plus/ts/array/last.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type AnyFunction, type Last } from '../index.js' + +import { type AnyFunction, type Last,testType } from '../index.js' it('returns never for empty tuple', () => { testType.equal, never>(true) diff --git a/type-plus/ts/array/literal_array.spec.ts b/type-plus/ts/array/literal_array.spec.ts index b5d55d4e55..42770d954e 100644 --- a/type-plus/ts/array/literal_array.spec.ts +++ b/type-plus/ts/array/literal_array.spec.ts @@ -1,4 +1,5 @@ import { test } from '@jest/globals' + import { literalArray, testType } from '../index.js' test('entries in array are restricted to the input literals', () => { diff --git a/type-plus/ts/array/loose_array_type.spec.ts b/type-plus/ts/array/loose_array_type.spec.ts index 44eace74d0..600501bbad 100644 --- a/type-plus/ts/array/loose_array_type.spec.ts +++ b/type-plus/ts/array/loose_array_type.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type LooseArrayType } from '../index.js' + +import { type LooseArrayType,testType } from '../index.js' it('returns T if T is array', () => { testType.equal, string[]>(true) diff --git a/type-plus/ts/array/pad_start.spec.ts b/type-plus/ts/array/pad_start.spec.ts index 2bf6c034c5..fca2f7d073 100644 --- a/type-plus/ts/array/pad_start.spec.ts +++ b/type-plus/ts/array/pad_start.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type PadStart } from '../index.js' + +import { type PadStart,testType } from '../index.js' it('returns itself if A is any or never', () => { testType.equal, any>(true) diff --git a/type-plus/ts/array/reduce_while.spec.ts b/type-plus/ts/array/reduce_while.spec.ts index 2840d556ee..f286235dd4 100644 --- a/type-plus/ts/array/reduce_while.spec.ts +++ b/type-plus/ts/array/reduce_while.spec.ts @@ -1,4 +1,5 @@ import { describe, expect, test } from '@jest/globals' + import { reduceWhile } from '../index.js' describe('reduceWhile()', () => { diff --git a/type-plus/ts/array/reverse.spec.ts b/type-plus/ts/array/reverse.spec.ts index eac75d1bdf..a77216ed55 100644 --- a/type-plus/ts/array/reverse.spec.ts +++ b/type-plus/ts/array/reverse.spec.ts @@ -1,5 +1,6 @@ import { test } from '@jest/globals' -import { testType, type Reverse } from '../index.js' + +import { type Reverse,testType } from '../index.js' test('empty array gets itself', () => { testType.equal, []>(true) diff --git a/type-plus/ts/array/strict_array_type.not_strict_array_type.spec copy.ts b/type-plus/ts/array/strict_array_type.not_strict_array_type.spec copy.ts index 9203e4daab..b9a76fabfb 100644 --- a/type-plus/ts/array/strict_array_type.not_strict_array_type.spec copy.ts +++ b/type-plus/ts/array/strict_array_type.not_strict_array_type.spec copy.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type NotStrictArrayType } from '../index.js' + +import { type NotStrictArrayType,testType } from '../index.js' it('returns never if T is array', () => { testType.never>(true) diff --git a/type-plus/ts/array/strict_array_type.not_strict_array_type.spec.ts b/type-plus/ts/array/strict_array_type.not_strict_array_type.spec.ts index 9203e4daab..b9a76fabfb 100644 --- a/type-plus/ts/array/strict_array_type.not_strict_array_type.spec.ts +++ b/type-plus/ts/array/strict_array_type.not_strict_array_type.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type NotStrictArrayType } from '../index.js' + +import { type NotStrictArrayType,testType } from '../index.js' it('returns never if T is array', () => { testType.never>(true) diff --git a/type-plus/ts/array/strict_array_type.spec.ts b/type-plus/ts/array/strict_array_type.spec.ts index 2328790daf..ba696623c4 100644 --- a/type-plus/ts/array/strict_array_type.spec.ts +++ b/type-plus/ts/array/strict_array_type.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type StrictArrayType } from '../index.js' + +import { type StrictArrayType,testType } from '../index.js' it('returns T if T is array', () => { testType.equal, string[]>(true) diff --git a/type-plus/ts/array/union_of_props.spec.ts b/type-plus/ts/array/union_of_props.spec.ts index a6445248c1..8f1e69afd9 100644 --- a/type-plus/ts/array/union_of_props.spec.ts +++ b/type-plus/ts/array/union_of_props.spec.ts @@ -1,4 +1,5 @@ import { it, test } from '@jest/globals' + import { testType, type UnionOfProps } from '../index.js' test('get property from single value tuple', () => { diff --git a/type-plus/ts/array/union_of_values.spec.ts b/type-plus/ts/array/union_of_values.spec.ts index 0f2e090f3e..42af3deb20 100644 --- a/type-plus/ts/array/union_of_values.spec.ts +++ b/type-plus/ts/array/union_of_values.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType, type UnionOfValues } from '../index.js' it('returns type T of Array', () => { diff --git a/type-plus/ts/assertion/assert_type.spec.ts b/type-plus/ts/assertion/assert_type.spec.ts index 760ef6aa8c..25b4a0b1a4 100644 --- a/type-plus/ts/assertion/assert_type.spec.ts +++ b/type-plus/ts/assertion/assert_type.spec.ts @@ -1,6 +1,7 @@ import { describe, expect, it } from '@jest/globals' import { a } from 'assertron' -import { assertType, testType, type AnyConstructor, type AnyFunction } from '../index.js' + +import { type AnyConstructor, type AnyFunction,assertType, testType } from '../index.js' describe('assertType()', () => { it('input satisfies specified type', () => { diff --git a/type-plus/ts/assertion/assert_type.ts b/type-plus/ts/assertion/assert_type.ts index 578b21d4d7..84b8de25f5 100644 --- a/type-plus/ts/assertion/assert_type.ts +++ b/type-plus/ts/assertion/assert_type.ts @@ -1,5 +1,6 @@ import { tersify } from 'tersify' -import { isConstructor, type AnyConstructor } from '../class/index.js' + +import { type AnyConstructor,isConstructor } from '../class/index.js' import { type AnyFunction } from '../function/any_function.js' /** diff --git a/type-plus/ts/bigint/bigint.spec.ts b/type-plus/ts/bigint/bigint.spec.ts index d22aad96e7..6c34f89848 100644 --- a/type-plus/ts/bigint/bigint.spec.ts +++ b/type-plus/ts/bigint/bigint.spec.ts @@ -1,4 +1,5 @@ import { test } from '@jest/globals' + import { testType } from '../index.js' test('union behavior of bigint', () => { diff --git a/type-plus/ts/bigint/is_bigint.spec.ts b/type-plus/ts/bigint/is_bigint.spec.ts index 61361666ff..447cbc9b20 100644 --- a/type-plus/ts/bigint/is_bigint.spec.ts +++ b/type-plus/ts/bigint/is_bigint.spec.ts @@ -1,5 +1,6 @@ import { describe, it } from '@jest/globals' -import { testType, type IsBigint, type $Then, type $Else } from '../index.js' + +import { type $Else,type $Then, type IsBigint, testType } from '../index.js' it('returns true for bigint', () => { testType.true>(true) diff --git a/type-plus/ts/bigint/is_not_bigint.spec.ts b/type-plus/ts/bigint/is_not_bigint.spec.ts index 1adfb15493..f3abb2e986 100644 --- a/type-plus/ts/bigint/is_not_bigint.spec.ts +++ b/type-plus/ts/bigint/is_not_bigint.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Else, type $Then, type IsNotBigint, type $BranchOptions, type $Any, type $Unknown, type $Never } from '../index.js' + +import { type $Any, type $BranchOptions, type $Else, type $Never,type $Then, type $Unknown, type IsNotBigint, testType } from '../index.js' it('returns false for bigint', () => { testType.false>(true) diff --git a/type-plus/ts/bigint/is_not_strict_bigint.spec.ts b/type-plus/ts/bigint/is_not_strict_bigint.spec.ts index 2fac00a8e3..f30ed59161 100644 --- a/type-plus/ts/bigint/is_not_strict_bigint.spec.ts +++ b/type-plus/ts/bigint/is_not_strict_bigint.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Else, type $Then, type IsNotStrictBigint } from '../index.js' + +import { type $Else, type $Then, type IsNotStrictBigint,testType } from '../index.js' it('returns false for bigint', () => { testType.false>(true) diff --git a/type-plus/ts/bigint/is_strict_bigint.spec.ts b/type-plus/ts/bigint/is_strict_bigint.spec.ts index 796c61b884..d2e4c6b9eb 100644 --- a/type-plus/ts/bigint/is_strict_bigint.spec.ts +++ b/type-plus/ts/bigint/is_strict_bigint.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsStrictBigint, type $Then, type $Else } from '../index.js' + +import { type $Else,type $Then, type IsStrictBigint, testType } from '../index.js' it('returns true for bigint', () => { testType.true>(true) diff --git a/type-plus/ts/binary/index.spec.ts b/type-plus/ts/binary/index.spec.ts index f03c6b4692..0a8dad5c07 100644 --- a/type-plus/ts/binary/index.spec.ts +++ b/type-plus/ts/binary/index.spec.ts @@ -1,4 +1,5 @@ import { test } from '@jest/globals' + import { testType } from '../index.js' import type { B } from './index.js' diff --git a/type-plus/ts/boolean/boolean.spec.ts b/type-plus/ts/boolean/boolean.spec.ts index 0eb55d5c73..dce4d1e739 100644 --- a/type-plus/ts/boolean/boolean.spec.ts +++ b/type-plus/ts/boolean/boolean.spec.ts @@ -1,4 +1,5 @@ import { test } from '@jest/globals' + import { testType } from '../index.js' test('union behavior of boolean', () => { diff --git a/type-plus/ts/boolean/false.spec.ts b/type-plus/ts/boolean/false.spec.ts index e4537df2be..cd1ef5449a 100644 --- a/type-plus/ts/boolean/false.spec.ts +++ b/type-plus/ts/boolean/false.spec.ts @@ -1,4 +1,5 @@ import { test } from '@jest/globals' + import { testType } from '../index.js' test('union behavior of false', () => { diff --git a/type-plus/ts/boolean/is_boolean.spec.ts b/type-plus/ts/boolean/is_boolean.spec.ts index 2c6f788449..65b222560f 100644 --- a/type-plus/ts/boolean/is_boolean.spec.ts +++ b/type-plus/ts/boolean/is_boolean.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsBoolean, type $Then, type $Else } from '../index.js' + +import { type $Else,type $Then, type IsBoolean, testType } from '../index.js' it('returns true if T is boolean', () => { testType.equal, true>(true) diff --git a/type-plus/ts/boolean/is_false.spec.ts b/type-plus/ts/boolean/is_false.spec.ts index 5e76450534..2422b406ae 100644 --- a/type-plus/ts/boolean/is_false.spec.ts +++ b/type-plus/ts/boolean/is_false.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsFalse, type $Then, type $Else } from '../index.js' + +import { type $Else,type $Then, type IsFalse, testType } from '../index.js' it('returns true if T is false', () => { testType.equal, true>(true) diff --git a/type-plus/ts/boolean/is_not_boolean.spec.ts b/type-plus/ts/boolean/is_not_boolean.spec.ts index d6da885c8d..d36be7e981 100644 --- a/type-plus/ts/boolean/is_not_boolean.spec.ts +++ b/type-plus/ts/boolean/is_not_boolean.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsNotBoolean, type $Then, type $Else } from '../index.js' + +import { type $Else,type $Then, type IsNotBoolean, testType } from '../index.js' it('returns false if T is boolean', () => { testType.equal, false>(true) diff --git a/type-plus/ts/boolean/is_not_false.spec.ts b/type-plus/ts/boolean/is_not_false.spec.ts index 7e1872c64d..6c3a3c2811 100644 --- a/type-plus/ts/boolean/is_not_false.spec.ts +++ b/type-plus/ts/boolean/is_not_false.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Else, type $Then, type IsNotFalse } from '../index.js' + +import { type $Else, type $Then, type IsNotFalse,testType } from '../index.js' it('returns false if T is false', () => { testType.equal, false>(true) diff --git a/type-plus/ts/boolean/is_not_strict_boolean.spec.ts b/type-plus/ts/boolean/is_not_strict_boolean.spec.ts index 2799810cad..92f92e93ba 100644 --- a/type-plus/ts/boolean/is_not_strict_boolean.spec.ts +++ b/type-plus/ts/boolean/is_not_strict_boolean.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Any, type $BranchOptions, type $Else, type $Then, type IsNotStrictBoolean, type $Unknown, type $Never } from '../index.js' + +import { type $Any, type $BranchOptions, type $Else, type $Never,type $Then, type $Unknown, type IsNotStrictBoolean, testType } from '../index.js' it('returns false if T is boolean', () => { testType.equal, false>(true) diff --git a/type-plus/ts/boolean/is_not_true.spec.ts b/type-plus/ts/boolean/is_not_true.spec.ts index 5a171cd356..f433d940ba 100644 --- a/type-plus/ts/boolean/is_not_true.spec.ts +++ b/type-plus/ts/boolean/is_not_true.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Else, type $Then, type IsNotTrue } from '../index.js' + +import { type $Else, type $Then, type IsNotTrue,testType } from '../index.js' it('returns false if T is true', () => { testType.equal, false>(true) diff --git a/type-plus/ts/boolean/is_strict_boolean.spec.ts b/type-plus/ts/boolean/is_strict_boolean.spec.ts index d46beeb1b2..8a91179974 100644 --- a/type-plus/ts/boolean/is_strict_boolean.spec.ts +++ b/type-plus/ts/boolean/is_strict_boolean.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsStrictBoolean, type $Then, type $Else } from '../index.js' + +import { type $Else,type $Then, type IsStrictBoolean, testType } from '../index.js' it('returns true if T is boolean', () => { testType.equal, true>(true) diff --git a/type-plus/ts/boolean/is_true.spec.ts b/type-plus/ts/boolean/is_true.spec.ts index b1f698fb87..8b95f01825 100644 --- a/type-plus/ts/boolean/is_true.spec.ts +++ b/type-plus/ts/boolean/is_true.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsTrue, type $Then, type $Else } from '../index.js' + +import { type $Else,type $Then, type IsTrue, testType } from '../index.js' it('returns true if T is true', () => { testType.equal, true>(true) diff --git a/type-plus/ts/boolean/true.spec.ts b/type-plus/ts/boolean/true.spec.ts index 0f20cce319..34d3e55ee1 100644 --- a/type-plus/ts/boolean/true.spec.ts +++ b/type-plus/ts/boolean/true.spec.ts @@ -1,4 +1,5 @@ import { test } from '@jest/globals' + import { testType } from '../index.js' test('union behavior of true', () => { diff --git a/type-plus/ts/class/AnyConstructor.spec.ts b/type-plus/ts/class/AnyConstructor.spec.ts index 731b3ab8f3..e19eacb45c 100644 --- a/type-plus/ts/class/AnyConstructor.spec.ts +++ b/type-plus/ts/class/AnyConstructor.spec.ts @@ -1,4 +1,5 @@ import { test } from '@jest/globals' + import type { AnyConstructor } from '../index.js' test('basic', () => { diff --git a/type-plus/ts/class/isConstructor.spec.ts b/type-plus/ts/class/isConstructor.spec.ts index bd92177376..822083534e 100644 --- a/type-plus/ts/class/isConstructor.spec.ts +++ b/type-plus/ts/class/isConstructor.spec.ts @@ -1,5 +1,6 @@ import { describe, expect, test } from '@jest/globals' -import { assertType, isConstructor, isInstanceof, type AnyConstructor } from '../index.js' + +import { type AnyConstructor,assertType, isConstructor, isInstanceof } from '../index.js' test('check constructor', () => { const x: unknown = Error diff --git a/type-plus/ts/composable_types.spec.ts b/type-plus/ts/composable_types.spec.ts index 34403fa545..35a963dc9f 100644 --- a/type-plus/ts/composable_types.spec.ts +++ b/type-plus/ts/composable_types.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { assertType, canAssign, type ComposableTypes, type NonComposableTypes } from './index.js' it('includes object, array, and function', () => { diff --git a/type-plus/ts/equal/equal.is_equal.spec.ts b/type-plus/ts/equal/equal.is_equal.spec.ts index d0cbba2bbe..3dee332ece 100644 --- a/type-plus/ts/equal/equal.is_equal.spec.ts +++ b/type-plus/ts/equal/equal.is_equal.spec.ts @@ -1,4 +1,5 @@ import { it, test } from '@jest/globals' + import type { Head, IsEqual, IsNotEqual, ValueOf } from '../index.js' import { testType } from '../index.js' diff --git a/type-plus/ts/equal/equal.is_not_equal.spec.ts b/type-plus/ts/equal/equal.is_not_equal.spec.ts index 5d19a6feea..95a6c7440c 100644 --- a/type-plus/ts/equal/equal.is_not_equal.spec.ts +++ b/type-plus/ts/equal/equal.is_not_equal.spec.ts @@ -1,4 +1,5 @@ import { it, test } from '@jest/globals' + import type { Head, IsEqual, IsNotEqual, ValueOf } from '../index.js' import { testType } from '../index.js' diff --git a/type-plus/ts/function/any_function.spec.ts b/type-plus/ts/function/any_function.spec.ts index 92c6ad6385..184a39cd10 100644 --- a/type-plus/ts/function/any_function.spec.ts +++ b/type-plus/ts/function/any_function.spec.ts @@ -1,5 +1,6 @@ import { test } from '@jest/globals' -import { assertType, type AnyFunction } from '../index.js' + +import { type AnyFunction,assertType } from '../index.js' test('basic', () => { function doCallback(cb: AnyFunction) { diff --git a/type-plus/ts/function/extract_function.spec.ts b/type-plus/ts/function/extract_function.spec.ts index 2780326a4b..d448f0b809 100644 --- a/type-plus/ts/function/extract_function.spec.ts +++ b/type-plus/ts/function/extract_function.spec.ts @@ -1,5 +1,6 @@ import { describe, it } from '@jest/globals' -import { extractFunction, testType, type ExtractFunction } from '../index.js' + +import { type ExtractFunction,extractFunction, testType } from '../index.js' describe(`ExtraceFunction`, () => { it('gets the function itself if it is not composite', () => { diff --git a/type-plus/ts/function/function.spec.ts b/type-plus/ts/function/function.spec.ts index 6778386283..39919a14e0 100644 --- a/type-plus/ts/function/function.spec.ts +++ b/type-plus/ts/function/function.spec.ts @@ -1,4 +1,5 @@ import { test } from '@jest/globals' + import { testType } from '../index.js' test('union behavior of Function', () => { diff --git a/type-plus/ts/function/is_function.spec.ts b/type-plus/ts/function/is_function.spec.ts index 64a4f14b6c..1d16f55c75 100644 --- a/type-plus/ts/function/is_function.spec.ts +++ b/type-plus/ts/function/is_function.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type AnyFunction, type IsFunction, type $Then, type $Else } from '../index.js' + +import { type $Else,type $Then, type AnyFunction, type IsFunction, testType } from '../index.js' it('returns true if T is Function', () => { testType.true>(true) diff --git a/type-plus/ts/function/is_not_function.spec.ts b/type-plus/ts/function/is_not_function.spec.ts index 3b8ad58799..bba4e36185 100644 --- a/type-plus/ts/function/is_not_function.spec.ts +++ b/type-plus/ts/function/is_not_function.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Else, type $Then, type AnyFunction, type IsNotFunction } from '../index.js' + +import { type $Else, type $Then, type AnyFunction, type IsNotFunction,testType } from '../index.js' it('returns false if T is Function', () => { testType.false>(true) diff --git a/type-plus/ts/function/is_not_strict_function.spec.ts b/type-plus/ts/function/is_not_strict_function.spec.ts index f970f26818..28558ddd93 100644 --- a/type-plus/ts/function/is_not_strict_function.spec.ts +++ b/type-plus/ts/function/is_not_strict_function.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Else, type $Then, type AnyFunction, type IsNotStrictFunction } from '../index.js' + +import { type $Else, type $Then, type AnyFunction, type IsNotStrictFunction,testType } from '../index.js' it('returns false if T is Function', () => { testType.false>(true) diff --git a/type-plus/ts/function/is_strict_function.spec.ts b/type-plus/ts/function/is_strict_function.spec.ts index d030d5d723..f759e68841 100644 --- a/type-plus/ts/function/is_strict_function.spec.ts +++ b/type-plus/ts/function/is_strict_function.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type AnyFunction, type IsStrictFunction, type $Then, type $Else } from '../index.js' + +import { type $Else,type $Then, type AnyFunction, type IsStrictFunction, testType } from '../index.js' it('returns true if T is Function', () => { testType.true>(true) diff --git a/type-plus/ts/functional/ChainFn.spec.ts b/type-plus/ts/functional/ChainFn.spec.ts index a8de50390b..ce73aec4aa 100644 --- a/type-plus/ts/functional/ChainFn.spec.ts +++ b/type-plus/ts/functional/ChainFn.spec.ts @@ -1,5 +1,6 @@ import { test } from '@jest/globals' -import { testType, type ChainFn } from '../index.js' + +import { type ChainFn,testType } from '../index.js' test('return type is the same as input type', () => { type A = ChainFn diff --git a/type-plus/ts/functional/Maybe.spec.ts b/type-plus/ts/functional/Maybe.spec.ts index 0851249d0b..a16bfc8946 100644 --- a/type-plus/ts/functional/Maybe.spec.ts +++ b/type-plus/ts/functional/Maybe.spec.ts @@ -1,6 +1,7 @@ import { expect, test } from '@jest/globals' -import { assertType, canAssign, testType, type CanAssign } from '../index.js' -import { just, none, type Just, type Maybe, type None } from './Maybe.js' + +import { assertType, type CanAssign,canAssign, testType } from '../index.js' +import { type Just, just, type Maybe, type None,none } from './Maybe.js' test('just(value) returns Maybe', () => { assertType>(just(1)) diff --git a/type-plus/ts/functional/Maybe.ts b/type-plus/ts/functional/Maybe.ts index 18b67dcc6b..4c19471e0f 100644 --- a/type-plus/ts/functional/Maybe.ts +++ b/type-plus/ts/functional/Maybe.ts @@ -1,5 +1,5 @@ -import type { Brand } from '../nominal/index.js' import type { IsEqual } from '../equal/equal.js' +import type { Brand } from '../nominal/index.js' import type { Widen } from '../utils/index.js' export type Maybe = Just | None diff --git a/type-plus/ts/functional/compose.spec.ts b/type-plus/ts/functional/compose.spec.ts index ceb4c86be9..98d69f601d 100644 --- a/type-plus/ts/functional/compose.spec.ts +++ b/type-plus/ts/functional/compose.spec.ts @@ -1,4 +1,5 @@ import { expect, test } from '@jest/globals' + import { compose, testType } from '../index.js' test('works with endofunctors: +2 *3', () => { diff --git a/type-plus/ts/functional/context.spec.ts b/type-plus/ts/functional/context.spec.ts index e0eedb4b4f..1dbf450153 100644 --- a/type-plus/ts/functional/context.spec.ts +++ b/type-plus/ts/functional/context.spec.ts @@ -1,5 +1,6 @@ import { describe, expect, it } from '@jest/globals' import { AssertOrder } from 'assertron' + import { context, testType } from '../index.js' describe(`${context.name}()`, () => { diff --git a/type-plus/ts/index.ts b/type-plus/ts/index.ts index fe82e22b17..f19c80a625 100644 --- a/type-plus/ts/index.ts +++ b/type-plus/ts/index.ts @@ -79,13 +79,13 @@ export type * from './numeric/is_numeric.js' export type * from './numeric/is_positive.js' export * as NumericPlus from './numeric/numeric_plus.js' export type * from './numeric/numeric_type.js' -export type { Required, RequiredExcept, RequiredPick } from './object/Required.js' export * from './object/index.js' export type * from './object/is_not_object.js' export type * from './object/is_not_strict_object.js' export type * from './object/is_object.js' export type * from './object/is_strict_object.js' export * as ObjectPlus from './object/object_plus.js' +export type { Required, RequiredExcept, RequiredPick } from './object/Required.js' export type * from './predicates/assignable.js' export * from './predicates/index.js' export type { PrimitiveTypes } from './primitive.js' @@ -102,13 +102,12 @@ export * from './testing/stub.js' export * from './testing/test_type.js' export type { CommonKeys, CommonPropKeys } from './tuple/common_prop_keys.js' export * from './tuple/create_tuple.js' -export { drop } from './tuple/drop.js' export type { DropFirst, DropLast, DropMatch, DropNull, DropNullable, DropUndefined } from './tuple/drop.js' +export { drop } from './tuple/drop.js' export type * from './tuple/is_not_tuple.js' export type * from './tuple/is_tuple.js' export type { Tail } from './tuple/tail.js' export * as TuplePlus from './tuple/tuple_plus.js' -export * from './type-guard/is_type.js' export type { Failed, FailedT } from './type/failed.js' export type { NoInfer } from './type/no_infer.js' export type * from './type_plus/$error.js' @@ -124,6 +123,7 @@ export type * from './type_plus/branch/$resolve_branch.js' export type * from './type_plus/branch/$select.js' export type * from './type_plus/branch/$selection.js' export type * from './type_plus/branch/$selection_options.js' +export * from './type-guard/is_type.js' export type * from './undefined/has_undefined.js' export type * from './undefined/is_not_undefined.js' export type * from './undefined/is_undefined.js' diff --git a/type-plus/ts/json.spec.ts b/type-plus/ts/json.spec.ts index dd5b92d3f7..1acd526baf 100644 --- a/type-plus/ts/json.spec.ts +++ b/type-plus/ts/json.spec.ts @@ -1,4 +1,5 @@ import { describe, expect, test } from '@jest/globals' + import { assertType } from './assertion/assert_type.js' import { type JSONObject, JSONTypes } from './json.js' import { isType } from './type-guard/is_type.js' diff --git a/type-plus/ts/math/abs.spec.ts b/type-plus/ts/math/abs.spec.ts index 9907494586..c38c7e4dd2 100644 --- a/type-plus/ts/math/abs.spec.ts +++ b/type-plus/ts/math/abs.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { type Abs, testType } from '../index.js' it('returns N if N is positive number', () => { diff --git a/type-plus/ts/math/add.spec.ts b/type-plus/ts/math/add.spec.ts index a5b8ed94d5..abea607907 100644 --- a/type-plus/ts/math/add.spec.ts +++ b/type-plus/ts/math/add.spec.ts @@ -1,5 +1,6 @@ import { describe, it } from '@jest/globals' -import { testType, type Add } from '../index.js' + +import { type Add,testType } from '../index.js' // 123 + 123 = 246 // => [[1, 2, 3], 0] diff --git a/type-plus/ts/math/greater_than.spec.ts b/type-plus/ts/math/greater_than.spec.ts index a95e42948c..0a1445c16f 100644 --- a/type-plus/ts/math/greater_than.spec.ts +++ b/type-plus/ts/math/greater_than.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type GreaterThan } from '../index.js' + +import { type GreaterThan,testType } from '../index.js' it('number gets never', () => { testType.never>(true) diff --git a/type-plus/ts/math/index.ts b/type-plus/ts/math/index.ts index d9f6cdf33a..1d7f8bf1b5 100644 --- a/type-plus/ts/math/index.ts +++ b/type-plus/ts/math/index.ts @@ -1,7 +1,7 @@ export type { Abs } from './abs.js' // export type { Digit, DigitArray } from './Digit.js' +export type { Add, Increment } from './add.js' export type { GreaterThan } from './greater_than.js' export type { Max } from './max.js' -export type { Add, Increment } from './add.js' export type { Multiply } from './multiply.js' export type { Decrement, Subtract } from './subtract.js' diff --git a/type-plus/ts/math/math_plus.to_negative.spec.ts b/type-plus/ts/math/math_plus.to_negative.spec.ts index ac80491b53..89aea763fa 100644 --- a/type-plus/ts/math/math_plus.to_negative.spec.ts +++ b/type-plus/ts/math/math_plus.to_negative.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { MathPlus, testType } from '../index.js' it('converts positive bigint to negative', () => { diff --git a/type-plus/ts/math/max.spec.ts b/type-plus/ts/math/max.spec.ts index 82e40ce911..e8e750cebe 100644 --- a/type-plus/ts/math/max.spec.ts +++ b/type-plus/ts/math/max.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type Max } from '../index.js' + +import { type Max,testType } from '../index.js' it('works with floating point', () => { testType.equal, 1>(true) diff --git a/type-plus/ts/math/multiply.spec.ts b/type-plus/ts/math/multiply.spec.ts index b71ec60fee..48b5d04fa6 100644 --- a/type-plus/ts/math/multiply.spec.ts +++ b/type-plus/ts/math/multiply.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type Multiply } from '../index.js' + +import { type Multiply,testType } from '../index.js' it('0 * 0 = 0', () => { testType.equal, 0>(true) diff --git a/type-plus/ts/math/numeric_struct.digit.unit.ts b/type-plus/ts/math/numeric_struct.digit.unit.ts index 921a0fdaf8..09eff3d12d 100644 --- a/type-plus/ts/math/numeric_struct.digit.unit.ts +++ b/type-plus/ts/math/numeric_struct.digit.unit.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from '../index.js' import type { Digit } from './numeric_struct.js' diff --git a/type-plus/ts/math/numeric_struct.digit_array.unit.ts b/type-plus/ts/math/numeric_struct.digit_array.unit.ts index 525ac00395..645b98755a 100644 --- a/type-plus/ts/math/numeric_struct.digit_array.unit.ts +++ b/type-plus/ts/math/numeric_struct.digit_array.unit.ts @@ -1,4 +1,5 @@ import { describe, it } from '@jest/globals' + import { testType } from '../index.js' import type { DigitArray } from './numeric_struct.js' diff --git a/type-plus/ts/math/numeric_struct.digits_struct.unit.ts b/type-plus/ts/math/numeric_struct.digits_struct.unit.ts index 708c6a2698..e322b910d1 100644 --- a/type-plus/ts/math/numeric_struct.digits_struct.unit.ts +++ b/type-plus/ts/math/numeric_struct.digits_struct.unit.ts @@ -1,4 +1,5 @@ import { describe, it } from '@jest/globals' + import { testType } from '../index.js' import type { DigitsStruct } from './numeric_struct.js' diff --git a/type-plus/ts/math/numeric_struct.unit.ts b/type-plus/ts/math/numeric_struct.unit.ts index 2cdf0eeec4..9b81dd04b7 100644 --- a/type-plus/ts/math/numeric_struct.unit.ts +++ b/type-plus/ts/math/numeric_struct.unit.ts @@ -1,4 +1,5 @@ import { describe, it } from '@jest/globals' + import { testType } from '../index.js' import type { NumericStruct } from './numeric_struct.js' diff --git a/type-plus/ts/math/subtract.spec.ts b/type-plus/ts/math/subtract.spec.ts index 3fee0643bc..91accf41b8 100644 --- a/type-plus/ts/math/subtract.spec.ts +++ b/type-plus/ts/math/subtract.spec.ts @@ -1,5 +1,6 @@ import { describe, it } from '@jest/globals' -import { testType, type Subtract } from '../index.js' + +import { type Subtract,testType } from '../index.js' // 123 - 123 = 0 // => [[1, 2, 3], 0] // - [[1, 2, 3], 0] diff --git a/type-plus/ts/mix_types/box.spec.ts b/type-plus/ts/mix_types/box.spec.ts index 5fab555857..225bcea2a3 100644 --- a/type-plus/ts/mix_types/box.spec.ts +++ b/type-plus/ts/mix_types/box.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type Box } from '../index.js' + +import { type Box,testType } from '../index.js' it('boxes arrow function to Function', () => { testType.equal void>, Function>(true) diff --git a/type-plus/ts/mix_types/exclude.spec.ts b/type-plus/ts/mix_types/exclude.spec.ts index 22355b6aab..50a85e3644 100644 --- a/type-plus/ts/mix_types/exclude.spec.ts +++ b/type-plus/ts/mix_types/exclude.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type Exclude } from '../index.js' + +import { type Exclude,testType } from '../index.js' it('returns T for special types', () => { testType.equal, any>(true) diff --git a/type-plus/ts/mix_types/is_any_or_never.spec.ts b/type-plus/ts/mix_types/is_any_or_never.spec.ts index ec1cb53d20..033f172922 100644 --- a/type-plus/ts/mix_types/is_any_or_never.spec.ts +++ b/type-plus/ts/mix_types/is_any_or_never.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $SelectionPredicate, type IsAnyOrNever } from '../index.js' + +import { type $SelectionPredicate, type IsAnyOrNever,testType } from '../index.js' it('returns true for any', () => { testType.equal, true>(true) diff --git a/type-plus/ts/mix_types/is_any_or_never.ts b/type-plus/ts/mix_types/is_any_or_never.ts index 362a5bae60..5f48e0bdc3 100644 --- a/type-plus/ts/mix_types/is_any_or_never.ts +++ b/type-plus/ts/mix_types/is_any_or_never.ts @@ -1,7 +1,7 @@ import type { IsAny } from '../any/is_any.js' import type { IsNever } from '../never/is_never.js' -import type { $SelectionOptions } from '../type_plus/branch/$selection_options.js' import type { $SelectionPredicate } from '../type_plus/branch/$selection.js' +import type { $SelectionOptions } from '../type_plus/branch/$selection_options.js' /** * 🎭 *predicate* diff --git a/type-plus/ts/mix_types/merge.spec.ts b/type-plus/ts/mix_types/merge.spec.ts index 0063957a65..b3dd91c801 100644 --- a/type-plus/ts/mix_types/merge.spec.ts +++ b/type-plus/ts/mix_types/merge.spec.ts @@ -1,5 +1,6 @@ import { describe, expect, it } from '@jest/globals' -import { merge, testType, type Merge } from '../index.js' + +import { type Merge,merge, testType } from '../index.js' describe('Merge', () => { it('merges with any -> any', () => { diff --git a/type-plus/ts/never/is_never.spec.ts b/type-plus/ts/never/is_never.spec.ts index eef27ecf34..457bf753b4 100644 --- a/type-plus/ts/never/is_never.spec.ts +++ b/type-plus/ts/never/is_never.spec.ts @@ -1,5 +1,6 @@ import { describe, it } from '@jest/globals' -import { testType, type $Any, type $BranchOptions, type $Else, type $NotNever, type $Then, type $Unknown, type IsNever } from '../index.js' + +import { type $Any, type $BranchOptions, type $Else, type $NotNever, type $Then, type $Unknown, type IsNever,testType } from '../index.js' // alternative implementation // export type IsNever< diff --git a/type-plus/ts/never/is_never.ts b/type-plus/ts/never/is_never.ts index 1a7d9bcf51..befc74e996 100644 --- a/type-plus/ts/never/is_never.ts +++ b/type-plus/ts/never/is_never.ts @@ -1,10 +1,9 @@ import type { $Any } from '../any/any.js' import type { $SpecialType } from '../type_plus/$special_type.js' -// import type { $SpecialType } from '../type_plus/$special_type.js' import type { $InputOptions } from '../type_plus/branch/$input_options.js' import type { $ResolveBranch } from '../type_plus/branch/$resolve_branch.js' -import type { $SelectionOptions } from '../type_plus/branch/$selection_options.js' import type { $Else, $Then } from '../type_plus/branch/$selection.js' +import type { $SelectionOptions } from '../type_plus/branch/$selection_options.js' import type { $Unknown } from '../unknown/unknown.js' import type { $NotNever } from './never.js' diff --git a/type-plus/ts/never/is_not_never.spec.ts b/type-plus/ts/never/is_not_never.spec.ts index 6242d7172d..fa10c7404e 100644 --- a/type-plus/ts/never/is_not_never.spec.ts +++ b/type-plus/ts/never/is_not_never.spec.ts @@ -1,5 +1,6 @@ import { describe, it } from '@jest/globals' -import { testType, type $Any, type $BranchOptions, type $Else, type $Never, type $Then, type $Unknown, type IsNotNever } from '../index.js' + +import { type $Any, type $BranchOptions, type $Else, type $Never, type $Then, type $Unknown, type IsNotNever,testType } from '../index.js' // alternative implementation // export type IsNotNever< diff --git a/type-plus/ts/never/is_not_never.ts b/type-plus/ts/never/is_not_never.ts index 535482f121..b4bcc856f4 100644 --- a/type-plus/ts/never/is_not_never.ts +++ b/type-plus/ts/never/is_not_never.ts @@ -2,8 +2,8 @@ import type { $Any } from '../any/any.js' import type { $SpecialType } from '../type_plus/$special_type.js' import type { $InputOptions } from '../type_plus/branch/$input_options.js' import type { $ResolveBranch } from '../type_plus/branch/$resolve_branch.js' -import type { $SelectionOptions } from '../type_plus/branch/$selection_options.js' import type { $Else, $Then } from '../type_plus/branch/$selection.js' +import type { $SelectionOptions } from '../type_plus/branch/$selection_options.js' import type { $Unknown } from '../unknown/unknown.js' import type { $Never } from './never.js' diff --git a/type-plus/ts/never/never.spec.ts b/type-plus/ts/never/never.spec.ts index 120485b137..776b533705 100644 --- a/type-plus/ts/never/never.spec.ts +++ b/type-plus/ts/never/never.spec.ts @@ -1,5 +1,6 @@ -import { test, it } from '@jest/globals' -import { testType, type $Never, type $NotNever } from '../index.js' +import { it,test } from '@jest/globals' + +import { type $Never, type $NotNever,testType } from '../index.js' test('union behavior of never', () => { testType.equal(true) diff --git a/type-plus/ts/nodejs/isNodeError.spec.ts b/type-plus/ts/nodejs/isNodeError.spec.ts index bfd9461b0d..cb1d45d728 100644 --- a/type-plus/ts/nodejs/isNodeError.spec.ts +++ b/type-plus/ts/nodejs/isNodeError.spec.ts @@ -1,4 +1,5 @@ import { describe, test } from '@jest/globals' + import { assertType, isSystemError } from '../index.js' describe('isSystemError()', () => { diff --git a/type-plus/ts/nominal/brand.spec.ts b/type-plus/ts/nominal/brand.spec.ts index 5e470b3b7d..c67d578188 100644 --- a/type-plus/ts/nominal/brand.spec.ts +++ b/type-plus/ts/nominal/brand.spec.ts @@ -1,5 +1,6 @@ import { expect, it } from '@jest/globals' -import { brand, flavor, testType, type Brand } from '../index.js' + +import { type Brand,brand, flavor, testType } from '../index.js' it('branded type does not resolve to never', () => { testType.never>(false) diff --git a/type-plus/ts/nominal/flavor.spec.ts b/type-plus/ts/nominal/flavor.spec.ts index 21a21ad49c..ab317db82e 100644 --- a/type-plus/ts/nominal/flavor.spec.ts +++ b/type-plus/ts/nominal/flavor.spec.ts @@ -1,5 +1,6 @@ import { describe, expect, it, test } from '@jest/globals' -import { assertType, brand, flavor, isType, testType, type CanAssign, type Flavor } from '../index.js' + +import { assertType, brand, type CanAssign, type Flavor,flavor, isType, testType } from '../index.js' it('branded type does not resolve to never', () => { testType.never>(false) diff --git a/type-plus/ts/nominal/nominal_match.spec.ts b/type-plus/ts/nominal/nominal_match.spec.ts index ad9f86c29f..552f851d08 100644 --- a/type-plus/ts/nominal/nominal_match.spec.ts +++ b/type-plus/ts/nominal/nominal_match.spec.ts @@ -1,4 +1,5 @@ import { describe, expect, test } from '@jest/globals' + import { brand, flavor, nominalMatch } from '../index.js' describe('Brand', () => { diff --git a/type-plus/ts/nominal/nominal_match.ts b/type-plus/ts/nominal/nominal_match.ts index bdf1abae96..748818d0df 100644 --- a/type-plus/ts/nominal/nominal_match.ts +++ b/type-plus/ts/nominal/nominal_match.ts @@ -1,6 +1,6 @@ import type { Brand } from './brand.js' -import type { Flavor } from './flavor.js' import { typeSym } from './constants.js' +import type { Flavor } from './flavor.js' export function nominalMatch( a: Brand, diff --git a/type-plus/ts/null/is_not_null.spec.ts b/type-plus/ts/null/is_not_null.spec.ts index afb9747e9e..6f40bb6743 100644 --- a/type-plus/ts/null/is_not_null.spec.ts +++ b/type-plus/ts/null/is_not_null.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Else, type $Then, type IsNotNull } from '../index.js' + +import { type $Else, type $Then, type IsNotNull,testType } from '../index.js' it('returns false for null', () => { testType.false>(true) diff --git a/type-plus/ts/null/is_null.spec.ts b/type-plus/ts/null/is_null.spec.ts index 28a1bcbf98..792022fe1b 100644 --- a/type-plus/ts/null/is_null.spec.ts +++ b/type-plus/ts/null/is_null.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsNull, type $Then, type $Else } from '../index.js' + +import { type $Else,type $Then, type IsNull, testType } from '../index.js' it('returns true for null', () => { testType.true>(true) diff --git a/type-plus/ts/null/null.spec.ts b/type-plus/ts/null/null.spec.ts index a35a72a435..7af50c2078 100644 --- a/type-plus/ts/null/null.spec.ts +++ b/type-plus/ts/null/null.spec.ts @@ -1,4 +1,5 @@ import { test } from '@jest/globals' + import { testType } from '../index.js' test('union behavior of null', () => { diff --git a/type-plus/ts/number/is_not_number.spec.ts b/type-plus/ts/number/is_not_number.spec.ts index 015ad6e338..bbaf917c2e 100644 --- a/type-plus/ts/number/is_not_number.spec.ts +++ b/type-plus/ts/number/is_not_number.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsNotNumber, type $Else, type $Then } from '../index.js' + +import { type $Else, type $Then,type IsNotNumber, testType } from '../index.js' it('returns false for number', () => { testType.false>(true) diff --git a/type-plus/ts/number/is_not_strict_number.spec.ts b/type-plus/ts/number/is_not_strict_number.spec.ts index 4ba69009d3..312d4abb08 100644 --- a/type-plus/ts/number/is_not_strict_number.spec.ts +++ b/type-plus/ts/number/is_not_strict_number.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsNotStrictNumber, type $Else, type $Then } from '../index.js' + +import { type $Else, type $Then,type IsNotStrictNumber, testType } from '../index.js' it('returns false for number', () => { testType.equal, false>(true) diff --git a/type-plus/ts/number/is_number.spec.ts b/type-plus/ts/number/is_number.spec.ts index 8a4e86a46d..dea9932f89 100644 --- a/type-plus/ts/number/is_number.spec.ts +++ b/type-plus/ts/number/is_number.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsNumber, type $Then, type $Else } from '../index.js' + +import { type $Else,type $Then, type IsNumber, testType } from '../index.js' it('returns true for number', () => { testType.true>(true) diff --git a/type-plus/ts/number/is_stict_number.spec.ts b/type-plus/ts/number/is_stict_number.spec.ts index 15fbf9d46f..d31a8f7aa1 100644 --- a/type-plus/ts/number/is_stict_number.spec.ts +++ b/type-plus/ts/number/is_stict_number.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Else, type $Then, type IsStrictNumber } from '../index.js' + +import { type $Else, type $Then, type IsStrictNumber,testType } from '../index.js' it('returns true for number', () => { testType.true>(true) diff --git a/type-plus/ts/number/number.spec.ts b/type-plus/ts/number/number.spec.ts index 58632cd7e9..4e618d6589 100644 --- a/type-plus/ts/number/number.spec.ts +++ b/type-plus/ts/number/number.spec.ts @@ -1,4 +1,5 @@ import { test } from '@jest/globals' + import { testType } from '../index.js' test('union behavior of number', () => { diff --git a/type-plus/ts/number/number_plus.spec.ts b/type-plus/ts/number/number_plus.spec.ts index f74235a029..9ed8b9efdd 100644 --- a/type-plus/ts/number/number_plus.spec.ts +++ b/type-plus/ts/number/number_plus.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { isType, testType, type NumberPlus } from '../index.js' + +import { isType, type NumberPlus,testType } from '../index.js' it('exports', () => { isType(-0) diff --git a/type-plus/ts/numeric/cast.numeric_to_string.spec.ts b/type-plus/ts/numeric/cast.numeric_to_string.spec.ts index b3db0f30ab..a1d2746f26 100644 --- a/type-plus/ts/numeric/cast.numeric_to_string.spec.ts +++ b/type-plus/ts/numeric/cast.numeric_to_string.spec.ts @@ -1,4 +1,5 @@ import { it, test } from '@jest/globals' + import type { NumericToString } from '../index.js' import { testType } from '../index.js' diff --git a/type-plus/ts/numeric/cast.string_to_numeric.spec.ts b/type-plus/ts/numeric/cast.string_to_numeric.spec.ts index 5db6fffd31..3816591fc7 100644 --- a/type-plus/ts/numeric/cast.string_to_numeric.spec.ts +++ b/type-plus/ts/numeric/cast.string_to_numeric.spec.ts @@ -1,4 +1,5 @@ import { it, test } from '@jest/globals' + import type { StringToNumeric } from '../index.js' import { testType } from '../index.js' diff --git a/type-plus/ts/numeric/is_integer.spec.ts b/type-plus/ts/numeric/is_integer.spec.ts index 7625b4ee5d..b78ac41e9d 100644 --- a/type-plus/ts/numeric/is_integer.spec.ts +++ b/type-plus/ts/numeric/is_integer.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsInteger, type $Then, type $Else } from '../index.js' + +import { type $Else,type $Then, type IsInteger, testType } from '../index.js' it('returns boolean if N is number as it can contain float', () => { testType.equal, boolean>(true) diff --git a/type-plus/ts/numeric/is_negative.spec.ts b/type-plus/ts/numeric/is_negative.spec.ts index c8f3a02c51..d274876cc1 100644 --- a/type-plus/ts/numeric/is_negative.spec.ts +++ b/type-plus/ts/numeric/is_negative.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsNegative, type $Then, type $Else } from '../index.js' + +import { type $Else,type $Then, type IsNegative, testType } from '../index.js' it('returns boolean if T is number or bigint', () => { // `number` and `bigint` includes positive and negative numbers, diff --git a/type-plus/ts/numeric/is_not_integer.spec.ts b/type-plus/ts/numeric/is_not_integer.spec.ts index 5633a382e1..b08945e843 100644 --- a/type-plus/ts/numeric/is_not_integer.spec.ts +++ b/type-plus/ts/numeric/is_not_integer.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsNotInteger, type $Then, type $Else } from '../index.js' + +import { type $Else,type $Then, type IsNotInteger, testType } from '../index.js' it('returns boolean if N is number as it can contain float', () => { testType.equal, boolean>(true) diff --git a/type-plus/ts/numeric/is_not_negative.spec.ts b/type-plus/ts/numeric/is_not_negative.spec.ts index 506538ea58..0fe626f238 100644 --- a/type-plus/ts/numeric/is_not_negative.spec.ts +++ b/type-plus/ts/numeric/is_not_negative.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsNotNegative, type $Then, type $Else } from '../index.js' + +import { type $Else,type $Then, type IsNotNegative, testType } from '../index.js' it('returns boolean if T is number or bigint', () => { // `number` includes positive and negative numbers, diff --git a/type-plus/ts/numeric/is_not_numeric.spec.ts b/type-plus/ts/numeric/is_not_numeric.spec.ts index 0933702d5d..8d7aac1797 100644 --- a/type-plus/ts/numeric/is_not_numeric.spec.ts +++ b/type-plus/ts/numeric/is_not_numeric.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Else, type $Then, type IsNotNumeric } from '../index.js' + +import { type $Else, type $Then, type IsNotNumeric,testType } from '../index.js' it('returns false for number', () => { testType.false>(true) diff --git a/type-plus/ts/numeric/is_not_positive.spec.ts b/type-plus/ts/numeric/is_not_positive.spec.ts index f9010515b9..6d305f518c 100644 --- a/type-plus/ts/numeric/is_not_positive.spec.ts +++ b/type-plus/ts/numeric/is_not_positive.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsNotPositive, type $Then, type $Else } from '../index.js' + +import { type $Else,type $Then, type IsNotPositive, testType } from '../index.js' it('returns boolean if T is number or bigint', () => { // `number` includes positive and negative numbers, diff --git a/type-plus/ts/numeric/is_numeric.spec.ts b/type-plus/ts/numeric/is_numeric.spec.ts index 28235f8b3d..a7144501de 100644 --- a/type-plus/ts/numeric/is_numeric.spec.ts +++ b/type-plus/ts/numeric/is_numeric.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsNumeric, type $Then, type $Else } from '../index.js' + +import { type $Else,type $Then, type IsNumeric, testType } from '../index.js' it('returns true if T is number', () => { testType.true>(true) diff --git a/type-plus/ts/numeric/is_positive.spec.ts b/type-plus/ts/numeric/is_positive.spec.ts index f50fbf9a35..01dd0a2db7 100644 --- a/type-plus/ts/numeric/is_positive.spec.ts +++ b/type-plus/ts/numeric/is_positive.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsPositive, type $Then, type $Else } from '../index.js' + +import { type $Else,type $Then, type IsPositive, testType } from '../index.js' it('returns boolean if T is number or bigint', () => { // `number` and `bigint` includes positive and negative numbers, diff --git a/type-plus/ts/numeric/numeric.zero.spec.ts b/type-plus/ts/numeric/numeric.zero.spec.ts index 6a2aa99bc7..1eeee1f0ef 100644 --- a/type-plus/ts/numeric/numeric.zero.spec.ts +++ b/type-plus/ts/numeric/numeric.zero.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { isType, type Zero } from '../index.js' it('can be 0', () => { diff --git a/type-plus/ts/numeric/numeric_plus.spec.ts b/type-plus/ts/numeric/numeric_plus.spec.ts index a4c19fa005..0fe1251fae 100644 --- a/type-plus/ts/numeric/numeric_plus.spec.ts +++ b/type-plus/ts/numeric/numeric_plus.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { isType, type NumericPlus } from '../index.js' it('exports', () => { diff --git a/type-plus/ts/object/ANotB.spec.ts b/type-plus/ts/object/ANotB.spec.ts index bcf997047a..6f154ba777 100644 --- a/type-plus/ts/object/ANotB.spec.ts +++ b/type-plus/ts/object/ANotB.spec.ts @@ -1,5 +1,6 @@ import { describe, test } from '@jest/globals' -import { assertType, type ANotB, type BNotA, type IsDisjoint } from '../index.js' + +import { type ANotB, assertType, type BNotA, type IsDisjoint } from '../index.js' describe('ANotB', () => { test('same type returns never', () => { diff --git a/type-plus/ts/object/ExcludePropType.spec.ts b/type-plus/ts/object/ExcludePropType.spec.ts index d66f5642ac..e1309acb7e 100644 --- a/type-plus/ts/object/ExcludePropType.spec.ts +++ b/type-plus/ts/object/ExcludePropType.spec.ts @@ -1,4 +1,5 @@ import { test } from '@jest/globals' + import { assertType, type ExcludePropType } from '../index.js' test('exclude type R from properties of T', () => { diff --git a/type-plus/ts/object/IsDisjoint.spec.ts b/type-plus/ts/object/IsDisjoint.spec.ts index 9bfdcf5e86..12bb1cd7fc 100644 --- a/type-plus/ts/object/IsDisjoint.spec.ts +++ b/type-plus/ts/object/IsDisjoint.spec.ts @@ -1,5 +1,6 @@ import { test } from '@jest/globals' -import { testType, type IsDisjoint } from '../index.js' + +import { type IsDisjoint,testType } from '../index.js' test('disjoint returns true', () => { type A = { a: 1 } diff --git a/type-plus/ts/object/IsRecord.spec.ts b/type-plus/ts/object/IsRecord.spec.ts index 21222a7a62..c32b64cd50 100644 --- a/type-plus/ts/object/IsRecord.spec.ts +++ b/type-plus/ts/object/IsRecord.spec.ts @@ -1,4 +1,5 @@ import { test } from '@jest/globals' + import { assertType, type IsRecord } from '../index.js' test('boolean, number, string, null, undefined, symbol are not record', () => { diff --git a/type-plus/ts/object/KeyTypes.spec.ts b/type-plus/ts/object/KeyTypes.spec.ts index 9cb13a9e62..bd07d837ed 100644 --- a/type-plus/ts/object/KeyTypes.spec.ts +++ b/type-plus/ts/object/KeyTypes.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import type { KeyTypes } from '../index.js' it('contains type of all keys', () => { diff --git a/type-plus/ts/object/KeyofOptional.spec.ts b/type-plus/ts/object/KeyofOptional.spec.ts index bd87fce96a..a75fa6cf68 100644 --- a/type-plus/ts/object/KeyofOptional.spec.ts +++ b/type-plus/ts/object/KeyofOptional.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type KeysOfOptional } from '../index.js' + +import { type KeysOfOptional,testType } from '../index.js' it('get keys from optional type', () => { type X = { o?: { a: string, b: string } } diff --git a/type-plus/ts/object/KeysWithDiffType.spec.ts b/type-plus/ts/object/KeysWithDiffType.spec.ts index c41730cc30..1c893886b0 100644 --- a/type-plus/ts/object/KeysWithDiffType.spec.ts +++ b/type-plus/ts/object/KeysWithDiffType.spec.ts @@ -1,4 +1,5 @@ import { test } from '@jest/globals' + import { assertType, type KeysWithDiffType } from '../index.js' test('disjoint type gets never', () => { diff --git a/type-plus/ts/object/KeysWithDiffType.ts b/type-plus/ts/object/KeysWithDiffType.ts index 343c4d6fe6..5c180c956c 100644 --- a/type-plus/ts/object/KeysWithDiffType.ts +++ b/type-plus/ts/object/KeysWithDiffType.ts @@ -1,6 +1,6 @@ -import type { ValueOf } from './ValueOf.js' -import type { IsDisjoint } from './IsDisjoint.js' import type { AnyRecord } from './any_record.js' +import type { IsDisjoint } from './IsDisjoint.js' +import type { ValueOf } from './ValueOf.js' export type KeysWithDiffType = IsDisjoint extends true ? never diff --git a/type-plus/ts/object/KnownKeys.spec.ts b/type-plus/ts/object/KnownKeys.spec.ts index 10ae2cc55f..cfb59980f2 100644 --- a/type-plus/ts/object/KnownKeys.spec.ts +++ b/type-plus/ts/object/KnownKeys.spec.ts @@ -1,4 +1,5 @@ import { test } from '@jest/globals' + import { assertType, type KnownKeys } from '../index.js' test('pick out only known keys', () => { diff --git a/type-plus/ts/object/OptionalKeys.spec.ts b/type-plus/ts/object/OptionalKeys.spec.ts index 4b987af2aa..0e996e95d3 100644 --- a/type-plus/ts/object/OptionalKeys.spec.ts +++ b/type-plus/ts/object/OptionalKeys.spec.ts @@ -1,4 +1,5 @@ import { test } from '@jest/globals' + import { testType } from '../index.js' import type { OptionalKeys } from './optional_key.js' diff --git a/type-plus/ts/object/OptionalKeys.ts b/type-plus/ts/object/OptionalKeys.ts deleted file mode 100644 index 0965aa2795..0000000000 --- a/type-plus/ts/object/OptionalKeys.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { KeyTypes } from './KeyTypes.js' - -export type OptionalKeys> = O extends unknown ? OptionalKeys._ : never - -export namespace OptionalKeys { - export type _> = { - [K in keyof O]-?: Record extends Pick ? K : never - }[keyof O] -} diff --git a/type-plus/ts/object/Partial.spec.ts b/type-plus/ts/object/Partial.spec.ts index 6b77f96e4d..8ec0774cc6 100644 --- a/type-plus/ts/object/Partial.spec.ts +++ b/type-plus/ts/object/Partial.spec.ts @@ -1,12 +1,12 @@ import { it, test } from '@jest/globals' + import { assertType, - testType, type Partial, type PartialExcept, type PartialOmit, - type PartialPick -} from '../index.js' + type PartialPick, + testType } from '../index.js' test('work on primitive type', () => { type Foo = PartialPick diff --git a/type-plus/ts/object/RecursiveIntersect.spec.ts b/type-plus/ts/object/RecursiveIntersect.spec.ts index 3234999e5e..0e6aac9642 100644 --- a/type-plus/ts/object/RecursiveIntersect.spec.ts +++ b/type-plus/ts/object/RecursiveIntersect.spec.ts @@ -1,4 +1,5 @@ import { test } from '@jest/globals' + import type { RecursiveIntersect } from '../index.js' test('add object type to types', () => { diff --git a/type-plus/ts/object/RecursiveRequired.spec.ts b/type-plus/ts/object/RecursiveRequired.spec.ts index ba9e02f5c2..7ea1a23b0e 100644 --- a/type-plus/ts/object/RecursiveRequired.spec.ts +++ b/type-plus/ts/object/RecursiveRequired.spec.ts @@ -1,4 +1,5 @@ import { expect, test } from '@jest/globals' + import type { RecursiveRequired } from '../index.js' test('simple optional property becomes required', () => { diff --git a/type-plus/ts/object/Required.spec.ts b/type-plus/ts/object/Required.spec.ts index 92bba31e54..073b1fa805 100644 --- a/type-plus/ts/object/Required.spec.ts +++ b/type-plus/ts/object/Required.spec.ts @@ -1,5 +1,6 @@ import { test } from '@jest/globals' -import { assertType, testType, type RequiredExcept, type RequiredPick } from '../index.js' + +import { assertType, type RequiredExcept, type RequiredPick,testType } from '../index.js' test('make picked properties required', () => { type Foo = { diff --git a/type-plus/ts/object/RequiredKeys.spec.ts b/type-plus/ts/object/RequiredKeys.spec.ts index e6ea189ca6..9ad6c15105 100644 --- a/type-plus/ts/object/RequiredKeys.spec.ts +++ b/type-plus/ts/object/RequiredKeys.spec.ts @@ -1,5 +1,6 @@ import { test } from '@jest/globals' -import { testType, type RequiredKeys } from '../index.js' + +import { type RequiredKeys,testType } from '../index.js' test('extract required keys from object', () => { type X = { a?: string, b: string } diff --git a/type-plus/ts/object/RequiredKeys.ts b/type-plus/ts/object/RequiredKeys.ts index fcaadf8750..f70c161f56 100644 --- a/type-plus/ts/object/RequiredKeys.ts +++ b/type-plus/ts/object/RequiredKeys.ts @@ -1,8 +1,8 @@ import type { KeyTypes } from './KeyTypes.js' -import type { OptionalKeys } from './OptionalKeys.js' +import type { OptionalKeys } from './optional_key.js' export type RequiredKeys> = T extends unknown ? RequiredKeys._ : never export namespace RequiredKeys { - export type _> = Exclude> + export type _> = Exclude> } diff --git a/type-plus/ts/object/SpreadRecord.spec.ts b/type-plus/ts/object/SpreadRecord.spec.ts index 22f2e4d635..f29e73f842 100644 --- a/type-plus/ts/object/SpreadRecord.spec.ts +++ b/type-plus/ts/object/SpreadRecord.spec.ts @@ -1,5 +1,6 @@ import { test } from '@jest/globals' -import { testType, type SpreadRecord } from '../index.js' + +import { type SpreadRecord,testType } from '../index.js' test('records are combined as intersection', () => { type S = SpreadRecord<{ a: number }, { b: string }> diff --git a/type-plus/ts/object/ValueOf.spec.ts b/type-plus/ts/object/ValueOf.spec.ts index 744cd61a1a..d0da04cd60 100644 --- a/type-plus/ts/object/ValueOf.spec.ts +++ b/type-plus/ts/object/ValueOf.spec.ts @@ -1,4 +1,5 @@ import { test } from '@jest/globals' + import { isType, type ValueOf } from '../index.js' test('work with primitive type', () => { diff --git a/type-plus/ts/object/any_record.spec.ts b/type-plus/ts/object/any_record.spec.ts index 3e8c2442c8..3fe8539f46 100644 --- a/type-plus/ts/object/any_record.spec.ts +++ b/type-plus/ts/object/any_record.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type AnyRecord, type KeyTypes } from '../index.js' + +import { type AnyRecord, type KeyTypes,testType } from '../index.js' it('use as type criteria', () => { type X = keyof T diff --git a/type-plus/ts/object/everyKey.spec.ts b/type-plus/ts/object/everyKey.spec.ts index 8b5539bad6..c3d11fd744 100644 --- a/type-plus/ts/object/everyKey.spec.ts +++ b/type-plus/ts/object/everyKey.spec.ts @@ -1,4 +1,5 @@ import { expect, test } from '@jest/globals' + import { everyKey } from '../index.js' test('predicate key can be used as indexer of the subject', () => { diff --git a/type-plus/ts/object/facade.spec.ts b/type-plus/ts/object/facade.spec.ts index e6ea1dea9d..56446758f7 100644 --- a/type-plus/ts/object/facade.spec.ts +++ b/type-plus/ts/object/facade.spec.ts @@ -1,4 +1,5 @@ -import { test, expect } from '@jest/globals' +import { expect,test } from '@jest/globals' + import { facade } from '../index.js' test('facade on property', () => { diff --git a/type-plus/ts/object/filterKey.spec.ts b/type-plus/ts/object/filterKey.spec.ts index f8a7edca90..3a1b49b7a4 100644 --- a/type-plus/ts/object/filterKey.spec.ts +++ b/type-plus/ts/object/filterKey.spec.ts @@ -1,4 +1,5 @@ import { expect, it } from '@jest/globals' + import { filterKey } from '../index.js' it(`returns with type as 'keyof subject'`, () => { diff --git a/type-plus/ts/object/findKey.spec.ts b/type-plus/ts/object/findKey.spec.ts index eeb9aea1e6..0ea270c497 100644 --- a/type-plus/ts/object/findKey.spec.ts +++ b/type-plus/ts/object/findKey.spec.ts @@ -1,4 +1,5 @@ import { expect, it } from '@jest/globals' + import { findKey } from '../index.js' it('pass key as indexer of the subject', () => { diff --git a/type-plus/ts/object/forEachKey.spec.ts b/type-plus/ts/object/forEachKey.spec.ts index 27c3d97019..b15def5e81 100644 --- a/type-plus/ts/object/forEachKey.spec.ts +++ b/type-plus/ts/object/forEachKey.spec.ts @@ -1,4 +1,5 @@ import { expect, it } from '@jest/globals' + import { forEachKey } from '../index.js' it('predicate key can be used as indexer of the subject', () => { diff --git a/type-plus/ts/object/getField.spec.ts b/type-plus/ts/object/getField.spec.ts index eba9ebb0b6..ab27e70102 100644 --- a/type-plus/ts/object/getField.spec.ts +++ b/type-plus/ts/object/getField.spec.ts @@ -1,4 +1,5 @@ import { expect, test } from '@jest/globals' + import { getField } from '../index.js' test('support undefined', () => { diff --git a/type-plus/ts/object/hasKey.spec.ts b/type-plus/ts/object/hasKey.spec.ts index c5eaec840f..f1e0372caa 100644 --- a/type-plus/ts/object/hasKey.spec.ts +++ b/type-plus/ts/object/hasKey.spec.ts @@ -1,5 +1,6 @@ import { describe, expect, test } from '@jest/globals' -import { assertType, hasKey, type HasKey } from '../index.js' + +import { assertType, type HasKey,hasKey } from '../index.js' describe('HasKey', () => { test('true if has key', () => { diff --git a/type-plus/ts/object/hasProperty.spec.ts b/type-plus/ts/object/hasProperty.spec.ts index 3fe06eb9c9..2ef2f22e5a 100644 --- a/type-plus/ts/object/hasProperty.spec.ts +++ b/type-plus/ts/object/hasProperty.spec.ts @@ -1,4 +1,5 @@ import { expect, test } from '@jest/globals' + import { hasProperty } from '../index.js' test('hasProperty', () => { diff --git a/type-plus/ts/object/index.ts b/type-plus/ts/object/index.ts index bb0c05ec11..105b352c34 100644 --- a/type-plus/ts/object/index.ts +++ b/type-plus/ts/object/index.ts @@ -1,21 +1,7 @@ export type { ANotB, BNotA } from './ANotB.js' export type { AnyRecord } from './any_record.js' -export type { ExcludePropType } from './ExcludePropType.js' -export type { IsDisjoint } from './IsDisjoint.js' -export type { IsRecord } from './IsRecord.js' -export type { KeyTypes } from './KeyTypes.js' -export type { KeysOfOptional } from './KeyofOptional.js' -export type { KeysWithDiffType } from './KeysWithDiffType.js' -export type { KnownKeys } from './KnownKeys.js' -export type { OptionalKeys } from './OptionalKeys.js' -export type { Partial, PartialExcept, PartialOmit, PartialPick } from './Partial.js' -export type * from './optional_key.js' -export type { RecursiveIntersect } from './RecursiveIntersect.js' -export type { RecursiveRequired } from './RecursiveRequired.js' -export type { RequiredKeys } from './RequiredKeys.js' -export type { SpreadRecord } from './SpreadRecord.js' -export type { ValueOf } from './ValueOf.js' export * from './everyKey.js' +export type { ExcludePropType } from './ExcludePropType.js' export * from './facade.js' export * from './filterKey.js' export * from './findKey.js' @@ -23,16 +9,30 @@ export * from './forEachKey.js' export * from './getField.js' export * from './hasKey.js' export * from './hasProperty.js' +export type { IsDisjoint } from './IsDisjoint.js' +export type { IsRecord } from './IsRecord.js' +export type { KeysOfOptional } from './KeyofOptional.js' +export type { KeysWithDiffType } from './KeysWithDiffType.js' +export type { KeyTypes } from './KeyTypes.js' +export type { KnownKeys } from './KnownKeys.js' export * from './left_join.js' export * from './mapKey.js' export * from './mapProperties.js' export * from './omit.js' +export type * from './optional_key.js' +// export type { OptionalKeys } from './OptionalKeys.js' +export type { Partial, PartialExcept, PartialOmit, PartialPick } from './Partial.js' export * from './pick.js' export type { Properties } from './properties.js' export * from './record.js' export type { RecursivePartial } from './recursive_partial.js' +export type { RecursiveIntersect } from './RecursiveIntersect.js' +export type { RecursiveRequired } from './RecursiveRequired.js' export * from './reduceKey.js' export * from './replaceProperty.js' +export type { RequiredKeys } from './RequiredKeys.js' export * from './someKey.js' export * from './split.js' +export type { SpreadRecord } from './SpreadRecord.js' export * from './typeOverrideIncompatible.js' +export type { ValueOf } from './ValueOf.js' diff --git a/type-plus/ts/object/is_not_object.spec.ts b/type-plus/ts/object/is_not_object.spec.ts index 3eefb5f6d4..baffc98d63 100644 --- a/type-plus/ts/object/is_not_object.spec.ts +++ b/type-plus/ts/object/is_not_object.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Else, type $Then, type IsNotObject } from '../index.js' + +import { type $Else, type $Then, type IsNotObject,testType } from '../index.js' it('returns false if T is object', () => { testType.false>(true) diff --git a/type-plus/ts/object/is_not_strict_object.spec.ts b/type-plus/ts/object/is_not_strict_object.spec.ts index 6eb09f80bd..8c11256661 100644 --- a/type-plus/ts/object/is_not_strict_object.spec.ts +++ b/type-plus/ts/object/is_not_strict_object.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Else, type $Then, type IsNotStrictObject } from '../index.js' + +import { type $Else, type $Then, type IsNotStrictObject,testType } from '../index.js' it('returns false for object', () => { diff --git a/type-plus/ts/object/is_object.spec.ts b/type-plus/ts/object/is_object.spec.ts index 5356030e3d..b46fc6710e 100644 --- a/type-plus/ts/object/is_object.spec.ts +++ b/type-plus/ts/object/is_object.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsObject, type $Then, type $Else } from '../index.js' + +import { type $Else,type $Then, type IsObject, testType } from '../index.js' it('returns true if T is object', () => { testType.true>(true) diff --git a/type-plus/ts/object/is_strict_object.spec.ts b/type-plus/ts/object/is_strict_object.spec.ts index ebd64bbfd5..5e28512d7a 100644 --- a/type-plus/ts/object/is_strict_object.spec.ts +++ b/type-plus/ts/object/is_strict_object.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsStrictObject, type $Then, type $Else } from '../index.js' + +import { type $Else,type $Then, type IsStrictObject, testType } from '../index.js' it('returns true for object', () => { diff --git a/type-plus/ts/object/left_join.spec.ts b/type-plus/ts/object/left_join.spec.ts index 8a26720ec9..78bd8934ed 100644 --- a/type-plus/ts/object/left_join.spec.ts +++ b/type-plus/ts/object/left_join.spec.ts @@ -1,5 +1,6 @@ import { describe, it, test } from '@jest/globals' -import { assertType, testType, type LeftJoin } from '../index.js' + +import { assertType, type LeftJoin,testType } from '../index.js' describe('LeftJoin', () => { test('same type returns A', () => { diff --git a/type-plus/ts/object/left_join.ts b/type-plus/ts/object/left_join.ts index 3cfcf212c8..99905c3f67 100644 --- a/type-plus/ts/object/left_join.ts +++ b/type-plus/ts/object/left_join.ts @@ -1,17 +1,8 @@ import type { IsEqual } from '../equal/equal.js' import type { AnyRecord } from './any_record.js' import type { IsDisjoint } from './IsDisjoint.js' -import type { KeysWithDiffType } from './KeysWithDiffType.js' import type { Properties } from './properties.js' -export type ANotB = IsEqual extends true - ? never - : IsDisjoint extends true - ? A - : { [k in Exclude | KeysWithDiffType]: A[k] } - -export type BNotA = ANotB - export type LeftJoin = IsEqual extends true ? A : IsDisjoint extends true diff --git a/type-plus/ts/object/mapKey.spec.ts b/type-plus/ts/object/mapKey.spec.ts index 4353eb88cc..6ec16268c0 100644 --- a/type-plus/ts/object/mapKey.spec.ts +++ b/type-plus/ts/object/mapKey.spec.ts @@ -1,5 +1,6 @@ import { it, test } from '@jest/globals' import { a } from 'assertron' + import { mapKey } from '../index.js' test('predicate key can be used as indexer of the subject', () => { diff --git a/type-plus/ts/object/mapProperties.spec.ts b/type-plus/ts/object/mapProperties.spec.ts index f053ef138a..54cd3ee70c 100644 --- a/type-plus/ts/object/mapProperties.spec.ts +++ b/type-plus/ts/object/mapProperties.spec.ts @@ -1,4 +1,5 @@ import { expect, test } from '@jest/globals' + import { mapProperties } from '../index.js' test('basic usage', () => { diff --git a/type-plus/ts/object/merge.spec.ts b/type-plus/ts/object/merge.spec.ts index 5190ac3109..51a34fce9c 100644 --- a/type-plus/ts/object/merge.spec.ts +++ b/type-plus/ts/object/merge.spec.ts @@ -1,5 +1,6 @@ import { expect, it } from '@jest/globals' -import { testType, ObjectPlus } from '../index.js' + +import { ObjectPlus,testType } from '../index.js' it('merges with any -> any', () => { diff --git a/type-plus/ts/object/merge.ts b/type-plus/ts/object/merge.ts index 59176f15cb..f7f60593d3 100644 --- a/type-plus/ts/object/merge.ts +++ b/type-plus/ts/object/merge.ts @@ -5,10 +5,10 @@ import type { IsNotNever } from '../never/is_not_never.js' import type { $Never } from '../never/never.js' import type { IsLiteral } from '../predicates/literal.js' import type { Or } from '../predicates/logical.js' +import type { AnyRecord } from './any_record.js' import type { IsDisjoint } from './IsDisjoint.js' import type { KeyTypes } from './KeyTypes.js' -import type { OptionalKeys } from './OptionalKeys.js' -import type { AnyRecord } from './any_record.js' +import type { OptionalKeys } from './optional_key.js' /** * ⚗️ *transform* diff --git a/type-plus/ts/object/object.spec.ts b/type-plus/ts/object/object.spec.ts index 6baab4f269..428cc65e6e 100644 --- a/type-plus/ts/object/object.spec.ts +++ b/type-plus/ts/object/object.spec.ts @@ -1,4 +1,5 @@ import { test } from '@jest/globals' + import { testType } from '../index.js' test('union behavior of object', () => { diff --git a/type-plus/ts/object/omit.spec.ts b/type-plus/ts/object/omit.spec.ts index 569f20d5bc..58e57fee86 100644 --- a/type-plus/ts/object/omit.spec.ts +++ b/type-plus/ts/object/omit.spec.ts @@ -1,5 +1,6 @@ import { describe, expect, it, test } from '@jest/globals' -import { assertType, isType, omit, record, testType, type Except, type Omit } from '../index.js' + +import { assertType, type Except, isType, type Omit,omit, record, testType } from '../index.js' describe('Omit', () => { test('work with primitive types', () => { diff --git a/type-plus/ts/object/optional_key.spec.ts b/type-plus/ts/object/optional_key.spec.ts index 981c15dfc2..919ab559cd 100644 --- a/type-plus/ts/object/optional_key.spec.ts +++ b/type-plus/ts/object/optional_key.spec.ts @@ -1,5 +1,6 @@ import { describe, it } from '@jest/globals' -import { testType, type IsOptionalKey, type OptionalKeys, type OptionalProps } from '../index.js' + +import { type IsOptionalKey, type OptionalKeys, type OptionalProps,testType } from '../index.js' describe('IsOptionalKey', () => { it('returns true for optional prop', () => { diff --git a/type-plus/ts/object/pick.spec.ts b/type-plus/ts/object/pick.spec.ts index be7b679e38..6250c11625 100644 --- a/type-plus/ts/object/pick.spec.ts +++ b/type-plus/ts/object/pick.spec.ts @@ -1,5 +1,6 @@ import { describe, expect, it, test } from '@jest/globals' -import { assertType, isType, pick, record, testType, type Pick } from '../index.js' + +import { assertType, isType, type Pick,pick, record, testType } from '../index.js' describe(`Pick`, () => { test('distributive pick', () => { diff --git a/type-plus/ts/object/properties.spec.ts b/type-plus/ts/object/properties.spec.ts index 472f77dd49..bd6783f4e5 100644 --- a/type-plus/ts/object/properties.spec.ts +++ b/type-plus/ts/object/properties.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { isType } from '../index.js' import type { Properties } from './properties.js' diff --git a/type-plus/ts/object/record.spec.ts b/type-plus/ts/object/record.spec.ts index b5159008be..a453b056f8 100644 --- a/type-plus/ts/object/record.spec.ts +++ b/type-plus/ts/object/record.spec.ts @@ -1,5 +1,6 @@ import { describe, expect, it } from '@jest/globals' -import { isType, record, testType, type KeyTypes, type RecordValue } from '../index.js' + +import { isType, type KeyTypes, record, type RecordValue,testType } from '../index.js' describe(`${record.name}()`, () => { it('creates an empty record with value default to unknown', () => { diff --git a/type-plus/ts/object/recursive_partial.spec.ts b/type-plus/ts/object/recursive_partial.spec.ts index c2a8b2708d..357f06c8a2 100644 --- a/type-plus/ts/object/recursive_partial.spec.ts +++ b/type-plus/ts/object/recursive_partial.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type RecursivePartial } from '../index.js' + +import { type RecursivePartial,testType } from '../index.js' it('marks props partial', () => { testType.equal, { a?: number | undefined }>(true) diff --git a/type-plus/ts/object/reduceKey.spec.ts b/type-plus/ts/object/reduceKey.spec.ts index 6026c78b59..ae0c75265f 100644 --- a/type-plus/ts/object/reduceKey.spec.ts +++ b/type-plus/ts/object/reduceKey.spec.ts @@ -1,4 +1,5 @@ import { expect, it, test } from '@jest/globals' + import { reduceByKey, reduceKey } from '../index.js' test('predicate key can be used as indexer of the subject', () => { diff --git a/type-plus/ts/object/replaceProperty.spec.ts b/type-plus/ts/object/replaceProperty.spec.ts index 6f8359ac06..592f45386f 100644 --- a/type-plus/ts/object/replaceProperty.spec.ts +++ b/type-plus/ts/object/replaceProperty.spec.ts @@ -1,5 +1,6 @@ import { expect, test } from '@jest/globals' -import { assertType, replaceProperty, type ReplaceProperty } from '../index.js' + +import { assertType, type ReplaceProperty,replaceProperty } from '../index.js' test('replaceProperty()', () => { const subject = { a: 1, b: 2 } as const diff --git a/type-plus/ts/object/someKey.spec.ts b/type-plus/ts/object/someKey.spec.ts index 185d307e3d..7402ea4edf 100644 --- a/type-plus/ts/object/someKey.spec.ts +++ b/type-plus/ts/object/someKey.spec.ts @@ -1,4 +1,5 @@ import { expect, it, test } from '@jest/globals' + import { isType, someKey } from '../index.js' test('predicate key can be used as indexer of the subject', () => { diff --git a/type-plus/ts/object/split.spec.ts b/type-plus/ts/object/split.spec.ts index 0fbe155df1..134c0cb44f 100644 --- a/type-plus/ts/object/split.spec.ts +++ b/type-plus/ts/object/split.spec.ts @@ -1,4 +1,5 @@ import { expect, test } from '@jest/globals' + import { isType, split, testType } from '../index.js' const target = { a: 0, b: '', c: false } diff --git a/type-plus/ts/object/split.ts b/type-plus/ts/object/split.ts index 601d1c0e23..2a1245a237 100644 --- a/type-plus/ts/object/split.ts +++ b/type-plus/ts/object/split.ts @@ -1,8 +1,8 @@ /* eslint-disable @typescript-eslint/no-unsafe-assignment */ import type { AnyRecord } from './any_record.js' import type { Omit } from './omit.js' -import { reduceByKey } from './reduceKey.js' import type { Partial } from './Partial.js' +import { reduceByKey } from './reduceKey.js' type Splitter = Partial<{ [k in keyof T]: T[k] | undefined }> export type Split = { diff --git a/type-plus/ts/object/typeOverrideIncompatible.spec.ts b/type-plus/ts/object/typeOverrideIncompatible.spec.ts index 2f0846cde1..2f392c4a48 100644 --- a/type-plus/ts/object/typeOverrideIncompatible.spec.ts +++ b/type-plus/ts/object/typeOverrideIncompatible.spec.ts @@ -1,4 +1,5 @@ import { test } from '@jest/globals' + import { typeOverrideIncompatible } from '../index.js' test('same type override has no property', () => { diff --git a/type-plus/ts/predicates/CanAssign.spec.ts b/type-plus/ts/predicates/CanAssign.spec.ts index 1e874fd833..5f28aa163c 100644 --- a/type-plus/ts/predicates/CanAssign.spec.ts +++ b/type-plus/ts/predicates/CanAssign.spec.ts @@ -1,5 +1,6 @@ -import { describe, test, it } from '@jest/globals' -import { canAssign, testType, type CanAssign } from '../index.js' +import { describe, it,test } from '@jest/globals' + +import { type CanAssign,canAssign, testType } from '../index.js' describe('CanAssign', () => { test('literal type to widen', () => { diff --git a/type-plus/ts/predicates/CanAssign.ts b/type-plus/ts/predicates/CanAssign.ts index 65d31d9249..160ecd2c65 100644 --- a/type-plus/ts/predicates/CanAssign.ts +++ b/type-plus/ts/predicates/CanAssign.ts @@ -1,5 +1,5 @@ -import type { NotExtendable } from './Extends.js' import type { Assignable } from './assignable.js' +import type { NotExtendable } from './Extends.js' /** * Can `A` assign to `B` diff --git a/type-plus/ts/predicates/If.spec.ts b/type-plus/ts/predicates/If.spec.ts index 94611bc1c0..50ee0fe8cd 100644 --- a/type-plus/ts/predicates/If.spec.ts +++ b/type-plus/ts/predicates/If.spec.ts @@ -1,5 +1,6 @@ import { test } from '@jest/globals' -import { assertType, isType, type If } from '../index.js' + +import { assertType, type If,isType } from '../index.js' test('true gets Then', () => { assertType>(2) diff --git a/type-plus/ts/predicates/IsEmptyObject.spec.ts b/type-plus/ts/predicates/IsEmptyObject.spec.ts index 210f4b4358..d99c6785d5 100644 --- a/type-plus/ts/predicates/IsEmptyObject.spec.ts +++ b/type-plus/ts/predicates/IsEmptyObject.spec.ts @@ -1,5 +1,6 @@ import { test } from '@jest/globals' -import { testType, type IsEmptyObject } from '../index.js' + +import { type IsEmptyObject,testType } from '../index.js' test('true for {}', () => { testType.true>(true) diff --git a/type-plus/ts/predicates/assignability.strict.spec.ts b/type-plus/ts/predicates/assignability.strict.spec.ts index 7a9f6f458b..0c1cbfc994 100644 --- a/type-plus/ts/predicates/assignability.strict.spec.ts +++ b/type-plus/ts/predicates/assignability.strict.spec.ts @@ -1,5 +1,6 @@ import { describe, it, test } from '@jest/globals' -import { testType, type StrictCanAssign } from '../index.js' + +import { type StrictCanAssign,testType } from '../index.js' describe('StrictCanAssign', () => { test('literal type to widen', () => { diff --git a/type-plus/ts/predicates/assignable.spec.ts b/type-plus/ts/predicates/assignable.spec.ts index 57d1892710..014dd4f3f9 100644 --- a/type-plus/ts/predicates/assignable.spec.ts +++ b/type-plus/ts/predicates/assignable.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type Assignable, type $Then, type $Else } from '../index.js' + +import { type $Else,type $Then, type Assignable, testType } from '../index.js' it('check if A can be assigned to B', () => { testType.true>(true) diff --git a/type-plus/ts/predicates/index.spec.ts b/type-plus/ts/predicates/index.spec.ts index 775cd21058..946153e59c 100644 --- a/type-plus/ts/predicates/index.spec.ts +++ b/type-plus/ts/predicates/index.spec.ts @@ -1,5 +1,6 @@ import { describe, test } from '@jest/globals' -import { isType, type IsStrictBoolean } from '../index.js' + +import { type IsStrictBoolean,isType } from '../index.js' describe('IsBoolean', () => { test('boolean/true/false', () => { diff --git a/type-plus/ts/predicates/literal.spec.ts b/type-plus/ts/predicates/literal.spec.ts index 86b6629e12..eb467e24eb 100644 --- a/type-plus/ts/predicates/literal.spec.ts +++ b/type-plus/ts/predicates/literal.spec.ts @@ -1,5 +1,6 @@ import { describe, it } from '@jest/globals' -import { testType, type IsLiteral } from '../index.js' + +import { type IsLiteral,testType } from '../index.js' describe('IsLiteral', () => { it('returns false for `number` type', () => { diff --git a/type-plus/ts/predicates/logical.spec.ts b/type-plus/ts/predicates/logical.spec.ts index f38ca95d5c..b9cff2753f 100644 --- a/type-plus/ts/predicates/logical.spec.ts +++ b/type-plus/ts/predicates/logical.spec.ts @@ -1,5 +1,6 @@ import { describe, test } from '@jest/globals' -import { testType, type And, type IsEqual, type Not, type Or, type Xor } from '../index.js' + +import { type And, type IsEqual, type Not, type Or, testType, type Xor } from '../index.js' describe('And', () => { test('basic', () => { diff --git a/type-plus/ts/primitive.spec.ts b/type-plus/ts/primitive.spec.ts index 38e4e1749d..50b9826dce 100644 --- a/type-plus/ts/primitive.spec.ts +++ b/type-plus/ts/primitive.spec.ts @@ -1,5 +1,6 @@ import { describe, it } from '@jest/globals' -import { isType, type IsNever } from './index.js' + +import { type IsNever,isType } from './index.js' describe('IsNever', () => { it('checks if type is never', () => { diff --git a/type-plus/ts/promise/MaybePromise.spec.ts b/type-plus/ts/promise/MaybePromise.spec.ts index f6ea8dbb59..685cfc5ec4 100644 --- a/type-plus/ts/promise/MaybePromise.spec.ts +++ b/type-plus/ts/promise/MaybePromise.spec.ts @@ -1,5 +1,6 @@ import { describe, expect, it } from '@jest/globals' -import { MaybePromise, isType } from '../index.js' + +import { isType,MaybePromise } from '../index.js' describe(`${MaybePromise.transform.name}()`, () => { it('returns the result from the handler directly if it is not a promise', () => { diff --git a/type-plus/ts/promise/PromiseValue.spec.ts b/type-plus/ts/promise/PromiseValue.spec.ts index 1bd62b757e..12970728df 100644 --- a/type-plus/ts/promise/PromiseValue.spec.ts +++ b/type-plus/ts/promise/PromiseValue.spec.ts @@ -1,5 +1,6 @@ import { describe, it, test } from '@jest/globals' -import { assertType, isType, type AwaitedProp, type PromiseValue } from '../index.js' + +import { assertType, type AwaitedProp, isType, type PromiseValue } from '../index.js' test('extract value from Promise', () => { const y: PromiseValue> = '' diff --git a/type-plus/ts/promise/PromiseValueMerge.spec.ts b/type-plus/ts/promise/PromiseValueMerge.spec.ts index f3b3c89b72..493309f50f 100644 --- a/type-plus/ts/promise/PromiseValueMerge.spec.ts +++ b/type-plus/ts/promise/PromiseValueMerge.spec.ts @@ -1,4 +1,5 @@ import { test } from '@jest/globals' + import { assertType, type PromiseValueMerge } from '../index.js' test('merge promise value', async () => { diff --git a/type-plus/ts/promise/index.ts b/type-plus/ts/promise/index.ts index 0e92bb82a0..9fbe99bb7b 100644 --- a/type-plus/ts/promise/index.ts +++ b/type-plus/ts/promise/index.ts @@ -1,5 +1,5 @@ export * from './isPromise.js' export * from './mapSeries.js' export * from './MaybePromise.js' -export type { PromiseValue, AwaitedProp } from './PromiseValue.js' +export type { AwaitedProp,PromiseValue } from './PromiseValue.js' export type { PromiseValueMerge } from './PromiseValueMerge.js' diff --git a/type-plus/ts/promise/isPromise.spec.ts b/type-plus/ts/promise/isPromise.spec.ts index 07760cc070..6ea9e95ad1 100644 --- a/type-plus/ts/promise/isPromise.spec.ts +++ b/type-plus/ts/promise/isPromise.spec.ts @@ -1,4 +1,5 @@ import { expect, test } from '@jest/globals' + import { isPromise } from '../index.js' test('false if subject is falsy value or non-object', () => { diff --git a/type-plus/ts/promise/mapSeries.spec.ts b/type-plus/ts/promise/mapSeries.spec.ts index fb52c45817..505c9afb60 100644 --- a/type-plus/ts/promise/mapSeries.spec.ts +++ b/type-plus/ts/promise/mapSeries.spec.ts @@ -1,4 +1,5 @@ import { expect, test } from '@jest/globals' + import { mapSeries } from '../index.js' test('map over values', () => { diff --git a/type-plus/ts/string/is_not_strict_string.spec.ts b/type-plus/ts/string/is_not_strict_string.spec.ts index 900aaa728b..aa8ca1a848 100644 --- a/type-plus/ts/string/is_not_strict_string.spec.ts +++ b/type-plus/ts/string/is_not_strict_string.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Else, type $Then, type IsNotStrictString } from '../index.js' + +import { type $Else, type $Then, type IsNotStrictString,testType } from '../index.js' it('returns false for string', () => { testType.false>(true) diff --git a/type-plus/ts/string/is_not_string.spec.ts b/type-plus/ts/string/is_not_string.spec.ts index e10fc8d24e..9f5d427858 100644 --- a/type-plus/ts/string/is_not_string.spec.ts +++ b/type-plus/ts/string/is_not_string.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Else, type $Then, type IsNotString } from '../index.js' + +import { type $Else, type $Then, type IsNotString,testType } from '../index.js' it('returns false for string', () => { testType.false>(true) diff --git a/type-plus/ts/string/is_strict_string.spec.ts b/type-plus/ts/string/is_strict_string.spec.ts index ccd3aae8f4..e9abfc406d 100644 --- a/type-plus/ts/string/is_strict_string.spec.ts +++ b/type-plus/ts/string/is_strict_string.spec.ts @@ -11,7 +11,8 @@ import { it } from '@jest/globals' -import { testType, type $Else, type $Then, type IsStrictString } from '../index.js' + +import { type $Else, type $Then, type IsStrictString,testType } from '../index.js' it('returns true for string', () => { testType.true>(true) diff --git a/type-plus/ts/string/is_string.spec.ts b/type-plus/ts/string/is_string.spec.ts index bae3343925..8259177c0e 100644 --- a/type-plus/ts/string/is_string.spec.ts +++ b/type-plus/ts/string/is_string.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Else, type $Then, type IsString } from '../index.js' + +import { type $Else, type $Then, type IsString,testType } from '../index.js' it('returns true for string', () => { testType.true>(true) diff --git a/type-plus/ts/string/string.includes.spec.ts b/type-plus/ts/string/string.includes.spec.ts index c4dafc0e52..beb94e0743 100644 --- a/type-plus/ts/string/string.includes.spec.ts +++ b/type-plus/ts/string/string.includes.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type StringIncludes } from '../index.js' + +import { type StringIncludes,testType } from '../index.js' it('should return true if the string contains the search string', () => { testType.true>(true) diff --git a/type-plus/ts/string/string.split.spec.ts b/type-plus/ts/string/string.split.spec.ts index f426482f49..718f2f2419 100644 --- a/type-plus/ts/string/string.split.spec.ts +++ b/type-plus/ts/string/string.split.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type StringSplit } from '../index.js' + +import { type StringSplit,testType } from '../index.js' it('should split a string into an array of substrings', () => { testType.equal, ['a', '']>(true) diff --git a/type-plus/ts/string/string_plus.spec.ts b/type-plus/ts/string/string_plus.spec.ts index fd2c26d916..92158d80c9 100644 --- a/type-plus/ts/string/string_plus.spec.ts +++ b/type-plus/ts/string/string_plus.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type StringIncludes, type StringPlus } from '../index.js' + +import { type StringIncludes, type StringPlus,testType } from '../index.js' it('exposes Includes', () => { testType.equal, StringIncludes<'', ''>>(true) diff --git a/type-plus/ts/symbol/is_not_symbol.spec.ts b/type-plus/ts/symbol/is_not_symbol.spec.ts index 5b9195776a..d3083cd5d4 100644 --- a/type-plus/ts/symbol/is_not_symbol.spec.ts +++ b/type-plus/ts/symbol/is_not_symbol.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsNotSymbol, type $Else, type $Then } from '../index.js' + +import { type $Else, type $Then,type IsNotSymbol, testType } from '../index.js' it('returns false for symbol', () => { testType.false>(true) diff --git a/type-plus/ts/symbol/is_symbol.spec.ts b/type-plus/ts/symbol/is_symbol.spec.ts index 3ccf4e0377..a2269e279a 100644 --- a/type-plus/ts/symbol/is_symbol.spec.ts +++ b/type-plus/ts/symbol/is_symbol.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsSymbol, type $Then, type $Else } from '../index.js' + +import { type $Else,type $Then, type IsSymbol, testType } from '../index.js' it('returns true for symbol', () => { testType.true>(true) diff --git a/type-plus/ts/symbol/symbol.spec.ts b/type-plus/ts/symbol/symbol.spec.ts index d150898ef5..822c9c942b 100644 --- a/type-plus/ts/symbol/symbol.spec.ts +++ b/type-plus/ts/symbol/symbol.spec.ts @@ -1,4 +1,5 @@ import { test } from '@jest/globals' + import { testType } from '../index.js' test('union behavior of symbol', () => { diff --git a/type-plus/ts/testing/stub.build.spec.ts b/type-plus/ts/testing/stub.build.spec.ts index 418a0e87e0..a48f0ed13d 100644 --- a/type-plus/ts/testing/stub.build.spec.ts +++ b/type-plus/ts/testing/stub.build.spec.ts @@ -1,4 +1,5 @@ import { expect, it } from '@jest/globals' + import { stub, testType } from '../index.js' it('can specify init as value', () => { diff --git a/type-plus/ts/testing/stub.builder.spec.ts b/type-plus/ts/testing/stub.builder.spec.ts index 49f49a1798..957102bb18 100644 --- a/type-plus/ts/testing/stub.builder.spec.ts +++ b/type-plus/ts/testing/stub.builder.spec.ts @@ -1,4 +1,5 @@ import { expect, it } from '@jest/globals' + import { stub, testType } from '../index.js' it('creates a stub builder with init object', () => { diff --git a/type-plus/ts/testing/stub.spec.ts b/type-plus/ts/testing/stub.spec.ts index d612be05a8..93bbcd7c2d 100644 --- a/type-plus/ts/testing/stub.spec.ts +++ b/type-plus/ts/testing/stub.spec.ts @@ -1,4 +1,5 @@ import { expect, it } from '@jest/globals' + import { stub, testType } from '../index.js' it('accepts a partial of the requested type', () => { diff --git a/type-plus/ts/testing/stub.ts b/type-plus/ts/testing/stub.ts index 4c48d4df32..9283047679 100644 --- a/type-plus/ts/testing/stub.ts +++ b/type-plus/ts/testing/stub.ts @@ -1,4 +1,5 @@ import { requiredDeep } from 'unpartial' + import type { AnyFunction } from '../function/any_function.js' import type { RecursivePartial } from '../object/recursive_partial.js' import type { NoInfer } from '../type/no_infer.js' diff --git a/type-plus/ts/testing/test_type.array.spec.ts b/type-plus/ts/testing/test_type.array.spec.ts index 3699595564..73ce70ce6a 100644 --- a/type-plus/ts/testing/test_type.array.spec.ts +++ b/type-plus/ts/testing/test_type.array.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from './test_type.js' it('accepts array', () => { diff --git a/type-plus/ts/testing/test_type.bigint.spec.ts b/type-plus/ts/testing/test_type.bigint.spec.ts index 9cfc63baa7..40792384df 100644 --- a/type-plus/ts/testing/test_type.bigint.spec.ts +++ b/type-plus/ts/testing/test_type.bigint.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from '../index.js' it('accepts bigint', () => { diff --git a/type-plus/ts/testing/test_type.boolean.spec.ts b/type-plus/ts/testing/test_type.boolean.spec.ts index af7e9fed52..2cb3f9cf8c 100644 --- a/type-plus/ts/testing/test_type.boolean.spec.ts +++ b/type-plus/ts/testing/test_type.boolean.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from '../index.js' it('accepts boolean', () => { diff --git a/type-plus/ts/testing/test_type.can_assign.spec.ts b/type-plus/ts/testing/test_type.can_assign.spec.ts index 6a2891f517..8a29ea52b2 100644 --- a/type-plus/ts/testing/test_type.can_assign.spec.ts +++ b/type-plus/ts/testing/test_type.can_assign.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from '../index.js' it(`should pass if A can assign to B`, () => { diff --git a/type-plus/ts/testing/test_type.equal.spec.ts b/type-plus/ts/testing/test_type.equal.spec.ts index 8ff1a032f9..15c531ed19 100644 --- a/type-plus/ts/testing/test_type.equal.spec.ts +++ b/type-plus/ts/testing/test_type.equal.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from '../index.js' it('can be used with expected value', () => { diff --git a/type-plus/ts/testing/test_type.false.spec.ts b/type-plus/ts/testing/test_type.false.spec.ts index a65cafdfc1..4892e794a4 100644 --- a/type-plus/ts/testing/test_type.false.spec.ts +++ b/type-plus/ts/testing/test_type.false.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from './test_type.js' it('accepts true and false', () => { diff --git a/type-plus/ts/testing/test_type.function.spec.ts b/type-plus/ts/testing/test_type.function.spec.ts index 72aedda6ec..b506460553 100644 --- a/type-plus/ts/testing/test_type.function.spec.ts +++ b/type-plus/ts/testing/test_type.function.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from '../index.js' it('accepts Function', () => { diff --git a/type-plus/ts/testing/test_type.inspect.spec.ts b/type-plus/ts/testing/test_type.inspect.spec.ts index 70e1e28bd3..239572bbd6 100644 --- a/type-plus/ts/testing/test_type.inspect.spec.ts +++ b/type-plus/ts/testing/test_type.inspect.spec.ts @@ -1,6 +1,7 @@ import { it } from '@jest/globals' -import { testType } from './test_type.js' + import { assertType } from '../index.js' +import { testType } from './test_type.js' it('can inspect type T', () => { testType.inspect<{ a: number }>(t => testType.equal(true)) diff --git a/type-plus/ts/testing/test_type.never.spec.ts b/type-plus/ts/testing/test_type.never.spec.ts index 936990c847..30c2a2e746 100644 --- a/type-plus/ts/testing/test_type.never.spec.ts +++ b/type-plus/ts/testing/test_type.never.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from './test_type.js' it('expects never', () => { diff --git a/type-plus/ts/testing/test_type.null.spec.ts b/type-plus/ts/testing/test_type.null.spec.ts index 8c9b03b3f9..48624bcf3e 100644 --- a/type-plus/ts/testing/test_type.null.spec.ts +++ b/type-plus/ts/testing/test_type.null.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from './test_type.js' it('accepts null', () => { diff --git a/type-plus/ts/testing/test_type.number.spec.ts b/type-plus/ts/testing/test_type.number.spec.ts index 3f0c959fff..38509bddb8 100644 --- a/type-plus/ts/testing/test_type.number.spec.ts +++ b/type-plus/ts/testing/test_type.number.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from '../index.js' it('accepts number', () => { diff --git a/type-plus/ts/testing/test_type.object.spec.ts b/type-plus/ts/testing/test_type.object.spec.ts index 87bdc136fb..fa417691db 100644 --- a/type-plus/ts/testing/test_type.object.spec.ts +++ b/type-plus/ts/testing/test_type.object.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from '../index.js' it('accepts Object', () => { diff --git a/type-plus/ts/testing/test_type.strict_bigint.spec.ts b/type-plus/ts/testing/test_type.strict_bigint.spec.ts index 27f84589dc..f99a6c0487 100644 --- a/type-plus/ts/testing/test_type.strict_bigint.spec.ts +++ b/type-plus/ts/testing/test_type.strict_bigint.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from '../index.js' it('accepts bigint', () => { diff --git a/type-plus/ts/testing/test_type.strict_boolean.spec.ts b/type-plus/ts/testing/test_type.strict_boolean.spec.ts index 1f8a29d5ca..092efc675d 100644 --- a/type-plus/ts/testing/test_type.strict_boolean.spec.ts +++ b/type-plus/ts/testing/test_type.strict_boolean.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from '../index.js' it('accepts boolean', () => { diff --git a/type-plus/ts/testing/test_type.strict_can_assign.spec.ts b/type-plus/ts/testing/test_type.strict_can_assign.spec.ts index f9c483d788..fa3c7725c7 100644 --- a/type-plus/ts/testing/test_type.strict_can_assign.spec.ts +++ b/type-plus/ts/testing/test_type.strict_can_assign.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from '../index.js' it(`should pass if A can assign to B`, () => { diff --git a/type-plus/ts/testing/test_type.strict_function.spec.ts b/type-plus/ts/testing/test_type.strict_function.spec.ts index 4436aaeff8..21183717de 100644 --- a/type-plus/ts/testing/test_type.strict_function.spec.ts +++ b/type-plus/ts/testing/test_type.strict_function.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from '../index.js' it('accepts Function', () => { diff --git a/type-plus/ts/testing/test_type.strict_number.spec.ts b/type-plus/ts/testing/test_type.strict_number.spec.ts index 67a982904f..45a6982e26 100644 --- a/type-plus/ts/testing/test_type.strict_number.spec.ts +++ b/type-plus/ts/testing/test_type.strict_number.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from '../index.js' it('accepts number', () => { diff --git a/type-plus/ts/testing/test_type.strict_string.spec.ts b/type-plus/ts/testing/test_type.strict_string.spec.ts index c3a80f64fa..295ee8b9d9 100644 --- a/type-plus/ts/testing/test_type.strict_string.spec.ts +++ b/type-plus/ts/testing/test_type.strict_string.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from '../index.js' it('accepts string', () => { diff --git a/type-plus/ts/testing/test_type.string.spec.ts b/type-plus/ts/testing/test_type.string.spec.ts index f12e5590f7..b0570756fa 100644 --- a/type-plus/ts/testing/test_type.string.spec.ts +++ b/type-plus/ts/testing/test_type.string.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from '../index.js' it('accepts string', () => { diff --git a/type-plus/ts/testing/test_type.symbol.spec.ts b/type-plus/ts/testing/test_type.symbol.spec.ts index c4d2623252..4a185cbfc3 100644 --- a/type-plus/ts/testing/test_type.symbol.spec.ts +++ b/type-plus/ts/testing/test_type.symbol.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from '../index.js' const s1 = Symbol() diff --git a/type-plus/ts/testing/test_type.true.spec.ts b/type-plus/ts/testing/test_type.true.spec.ts index 63e36cd693..c7517f550b 100644 --- a/type-plus/ts/testing/test_type.true.spec.ts +++ b/type-plus/ts/testing/test_type.true.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from './test_type.js' it('accepts true and false', () => { diff --git a/type-plus/ts/testing/test_type.tuple.spec.ts b/type-plus/ts/testing/test_type.tuple.spec.ts index 969e13bb30..6f9a09546f 100644 --- a/type-plus/ts/testing/test_type.tuple.spec.ts +++ b/type-plus/ts/testing/test_type.tuple.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from '../index.js' it('accepts tuple', () => { diff --git a/type-plus/ts/testing/test_type.undefined.spec.ts b/type-plus/ts/testing/test_type.undefined.spec.ts index 07ddd69a72..02f049a3bd 100644 --- a/type-plus/ts/testing/test_type.undefined.spec.ts +++ b/type-plus/ts/testing/test_type.undefined.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from './test_type.js' it('accepts undefined', () => { diff --git a/type-plus/ts/testing/test_type.unknown.spec.ts b/type-plus/ts/testing/test_type.unknown.spec.ts index faff574820..cd32a309b8 100644 --- a/type-plus/ts/testing/test_type.unknown.spec.ts +++ b/type-plus/ts/testing/test_type.unknown.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from '../index.js' it('accepts unknown', () => { diff --git a/type-plus/ts/testing/test_type.void.spec.ts b/type-plus/ts/testing/test_type.void.spec.ts index bf72a4c3f4..ac3befdd6d 100644 --- a/type-plus/ts/testing/test_type.void.spec.ts +++ b/type-plus/ts/testing/test_type.void.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from '../index.js' it('accepts void', () => { diff --git a/type-plus/ts/tuple/common_prop_keys.spec.ts b/type-plus/ts/tuple/common_prop_keys.spec.ts index 271931a59f..86b7ed613a 100644 --- a/type-plus/ts/tuple/common_prop_keys.spec.ts +++ b/type-plus/ts/tuple/common_prop_keys.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type CommonPropKeys } from '../index.js' + +import { type CommonPropKeys,testType } from '../index.js' it('never returns never', () => { testType.equal, never>(true) diff --git a/type-plus/ts/tuple/create_tuple.spec.ts b/type-plus/ts/tuple/create_tuple.spec.ts index ff0d90a534..edec64e37f 100644 --- a/type-plus/ts/tuple/create_tuple.spec.ts +++ b/type-plus/ts/tuple/create_tuple.spec.ts @@ -1,5 +1,6 @@ import { test } from '@jest/globals' -import { isType, type CreateTuple } from '../index.js' + +import { type CreateTuple,isType } from '../index.js' test('create empty tuple', () => { isType.equal>() diff --git a/type-plus/ts/tuple/drop.spec.ts b/type-plus/ts/tuple/drop.spec.ts index 9a0c3a62c8..4d7b073f04 100644 --- a/type-plus/ts/tuple/drop.spec.ts +++ b/type-plus/ts/tuple/drop.spec.ts @@ -1,4 +1,5 @@ import { expect, it } from '@jest/globals' + import { drop, testType } from '../index.js' it('returns the same tuple if the value does not match any entries in the tuple', () => { diff --git a/type-plus/ts/tuple/drop_first.spec.ts b/type-plus/ts/tuple/drop_first.spec.ts index 15b20ce244..8c89fc2e0e 100644 --- a/type-plus/ts/tuple/drop_first.spec.ts +++ b/type-plus/ts/tuple/drop_first.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type DropFirst } from '../index.js' + +import { type DropFirst,testType } from '../index.js' it('returns the input type if input is an array', () => { testType.equal, string[]>(true) diff --git a/type-plus/ts/tuple/drop_last.spec.ts b/type-plus/ts/tuple/drop_last.spec.ts index caed8625b9..621adf906a 100644 --- a/type-plus/ts/tuple/drop_last.spec.ts +++ b/type-plus/ts/tuple/drop_last.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type DropLast } from '../index.js' + +import { type DropLast,testType } from '../index.js' it('returns the input type if input is an array', () => { testType.equal, string[]>(true) diff --git a/type-plus/ts/tuple/drop_match.spec.ts b/type-plus/ts/tuple/drop_match.spec.ts index 6b4c98cf41..07d7f9e3b4 100644 --- a/type-plus/ts/tuple/drop_match.spec.ts +++ b/type-plus/ts/tuple/drop_match.spec.ts @@ -1,5 +1,6 @@ import { describe, test } from '@jest/globals' -import { testType, type DropMatch, type DropNull, type DropNullable, type DropUndefined } from '../index.js' + +import { type DropMatch, type DropNull, type DropNullable, type DropUndefined,testType } from '../index.js' describe('DropMatch', () => { describe('A is array', () => { diff --git a/type-plus/ts/tuple/is_not_tuple.spec.ts b/type-plus/ts/tuple/is_not_tuple.spec.ts index e3db8da1fa..de38d55400 100644 --- a/type-plus/ts/tuple/is_not_tuple.spec.ts +++ b/type-plus/ts/tuple/is_not_tuple.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsNotTuple, type $Then, type $Else } from '../index.js' + +import { type $Else,type $Then, type IsNotTuple, testType } from '../index.js' it('returns false if T is a tuple', () => { testType.false>(true) diff --git a/type-plus/ts/tuple/is_tuple.spec.ts b/type-plus/ts/tuple/is_tuple.spec.ts index 0774bee041..5abfb6bcf1 100644 --- a/type-plus/ts/tuple/is_tuple.spec.ts +++ b/type-plus/ts/tuple/is_tuple.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsTuple, type $Then, type $Else } from '../index.js' + +import { type $Else,type $Then, type IsTuple, testType } from '../index.js' it('returns true if T is a tuple', () => { testType.true>(true) diff --git a/type-plus/ts/tuple/tail.spec.ts b/type-plus/ts/tuple/tail.spec.ts index f1816044ed..7efcaa22d7 100644 --- a/type-plus/ts/tuple/tail.spec.ts +++ b/type-plus/ts/tuple/tail.spec.ts @@ -1,5 +1,6 @@ import { test } from '@jest/globals' -import { testType, type Tail } from '../index.js' + +import { type Tail,testType } from '../index.js' test('get tail types', () => { type S = [1, 'a', 'b'] diff --git a/type-plus/ts/tuple/tuple.spec.ts b/type-plus/ts/tuple/tuple.spec.ts index 57bdcea6f8..47a5fdeada 100644 --- a/type-plus/ts/tuple/tuple.spec.ts +++ b/type-plus/ts/tuple/tuple.spec.ts @@ -1,4 +1,5 @@ import { test } from '@jest/globals' + import { testType } from '../index.js' test('union behavior of tuple', () => { diff --git a/type-plus/ts/tuple/tuple_plus.common_prop_keys.spec.ts b/type-plus/ts/tuple/tuple_plus.common_prop_keys.spec.ts index 3f712bd145..34da8f0503 100644 --- a/type-plus/ts/tuple/tuple_plus.common_prop_keys.spec.ts +++ b/type-plus/ts/tuple/tuple_plus.common_prop_keys.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType, type TuplePlus } from '../index.js' it('never returns never', () => { diff --git a/type-plus/ts/tuple/tuple_plus.drop_match.spec.ts b/type-plus/ts/tuple/tuple_plus.drop_match.spec.ts index 8e4e656d22..fe13bc74f5 100644 --- a/type-plus/ts/tuple/tuple_plus.drop_match.spec.ts +++ b/type-plus/ts/tuple/tuple_plus.drop_match.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType, type TuplePlus } from '../index.js' it('returns [] for []', () => { diff --git a/type-plus/ts/tuple/tuple_plus.find.spec.ts b/type-plus/ts/tuple/tuple_plus.find.spec.ts index 3f0bc2916d..2ae430c910 100644 --- a/type-plus/ts/tuple/tuple_plus.find.spec.ts +++ b/type-plus/ts/tuple/tuple_plus.find.spec.ts @@ -1,4 +1,5 @@ import { it, test } from '@jest/globals' + import { testType, type TuplePlus } from '../index.js' test('behavior of tuple.find()', () => { diff --git a/type-plus/ts/tuple/tuple_plus.pad_start.spec.ts b/type-plus/ts/tuple/tuple_plus.pad_start.spec.ts index 9eba921e0e..efa7ab2be7 100644 --- a/type-plus/ts/tuple/tuple_plus.pad_start.spec.ts +++ b/type-plus/ts/tuple/tuple_plus.pad_start.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType, type TuplePlus } from '../index.js' it('pads with unknown', () => { diff --git a/type-plus/ts/tuple/tuple_type.distributive.spec.ts b/type-plus/ts/tuple/tuple_type.distributive.spec.ts index 8973daeee0..7f772aa1ba 100644 --- a/type-plus/ts/tuple/tuple_type.distributive.spec.ts +++ b/type-plus/ts/tuple/tuple_type.distributive.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsNever } from '../index.js' + +import { type IsNever,testType } from '../index.js' // @todo: this should be a new type that filter within the union. // That type cannot support override because the `Then` type can be overridden, diff --git a/type-plus/ts/tuple/type_plus.filter.spec.ts b/type-plus/ts/tuple/type_plus.filter.spec.ts index 95c07223e6..ca005d4cd4 100644 --- a/type-plus/ts/tuple/type_plus.filter.spec.ts +++ b/type-plus/ts/tuple/type_plus.filter.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType, type TuplePlus } from '../index.js' it('filters empty tuple -> empty tuple', () => { diff --git a/type-plus/ts/type-guard/is_type.never.spec.ts b/type-plus/ts/type-guard/is_type.never.spec.ts index f6dd377b95..9a5893f273 100644 --- a/type-plus/ts/type-guard/is_type.never.spec.ts +++ b/type-plus/ts/type-guard/is_type.never.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { isType } from '../index.js' it('can be used for type-only', () => { diff --git a/type-plus/ts/type-guard/is_type.spec.ts b/type-plus/ts/type-guard/is_type.spec.ts index bd54d2b69d..153d5e8f58 100644 --- a/type-plus/ts/type-guard/is_type.spec.ts +++ b/type-plus/ts/type-guard/is_type.spec.ts @@ -1,5 +1,6 @@ import { describe, expect, it, test } from '@jest/globals' -import { isType, testType, type IsEqual } from '../index.js' + +import { type IsEqual,isType, testType } from '../index.js' describe('isType()', () => { describe('without validator', () => { diff --git a/type-plus/ts/type/failed.spec.ts b/type-plus/ts/type/failed.spec.ts index 8d7554099f..f150aeea6d 100644 --- a/type-plus/ts/type/failed.spec.ts +++ b/type-plus/ts/type/failed.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type Failed, type FailedT } from '../index.js' + +import { type Failed, type FailedT,testType } from '../index.js' it('shows error message (inspect by hover over it)', () => { type R = Failed<'error message'> diff --git a/type-plus/ts/type/no_infer.spec.ts b/type-plus/ts/type/no_infer.spec.ts index 6d6469d0d7..da556e1d3a 100644 --- a/type-plus/ts/type/no_infer.spec.ts +++ b/type-plus/ts/type/no_infer.spec.ts @@ -7,6 +7,7 @@ // export type NoInfer = T extends infer S ? S : never; import { it } from '@jest/globals' + import { testType } from '../index.js' import { type UnionToIntersection } from '../union/union_to_intersection.js' import { type NoInfer } from './no_infer.js' diff --git a/type-plus/ts/type_plus/$error.spec.ts b/type-plus/ts/type_plus/$error.spec.ts index aa48c5caa0..7bd1c39429 100644 --- a/type-plus/ts/type_plus/$error.spec.ts +++ b/type-plus/ts/type_plus/$error.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Error } from '../index.js' + +import { type $Error,testType } from '../index.js' it('requires message', () => { type R = $Error<'some message'> diff --git a/type-plus/ts/type_plus/$infer_error.spec.ts b/type-plus/ts/type_plus/$infer_error.spec.ts index 8d09c21497..d57594aa97 100644 --- a/type-plus/ts/type_plus/$infer_error.spec.ts +++ b/type-plus/ts/type_plus/$infer_error.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $InferError } from '../index.js' + +import { type $InferError,testType } from '../index.js' it('can specify message only', () => { type R = $InferError<'some message'> diff --git a/type-plus/ts/type_plus/$resolve_options.spec.ts b/type-plus/ts/type_plus/$resolve_options.spec.ts index 0c136209d1..eba5dff497 100644 --- a/type-plus/ts/type_plus/$resolve_options.spec.ts +++ b/type-plus/ts/type_plus/$resolve_options.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Never, type $ResolveOptions, type $Then } from '../index.js' + +import { type $Never, type $ResolveOptions, type $Then,testType } from '../index.js' it('returns first non unknown', () => { testType.equal<$ResolveOptions<[unknown, 1]>, 1>(true) diff --git a/type-plus/ts/type_plus/$typs.spec.ts b/type-plus/ts/type_plus/$typs.spec.ts index 59b9776ebb..2ca3989fb6 100644 --- a/type-plus/ts/type_plus/$typs.spec.ts +++ b/type-plus/ts/type_plus/$typs.spec.ts @@ -1,6 +1,6 @@ import { it } from '@jest/globals' -import type { $Type } from '../index.js' -import { testType } from '../index.js' + +import { type $Type,testType } from '../index.js' it('is unique for each value', () => { type X = $Type<'a', 'b'> diff --git a/type-plus/ts/type_plus/branch/$branch.spec.ts b/type-plus/ts/type_plus/branch/$branch.spec.ts index 39801cefa7..4ca1b93332 100644 --- a/type-plus/ts/type_plus/branch/$branch.spec.ts +++ b/type-plus/ts/type_plus/branch/$branch.spec.ts @@ -1,5 +1,6 @@ import { describe, it } from '@jest/globals' -import { testType, type $Any, type $Branch, type $BranchOptions, type $Unknown } from '../../index.js' + +import { type $Any, type $Branch, type $BranchOptions, type $Unknown,testType } from '../../index.js' it('create a branch type with property name', () => { diff --git a/type-plus/ts/type_plus/branch/$input_options.spec.ts b/type-plus/ts/type_plus/branch/$input_options.spec.ts index 7bdf819fe9..93ca0853c0 100644 --- a/type-plus/ts/type_plus/branch/$input_options.spec.ts +++ b/type-plus/ts/type_plus/branch/$input_options.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Any, type $InputOptions, type $Unknown } from '../../index.js' + +import { type $Any, type $InputOptions, type $Unknown,testType } from '../../index.js' it('creates branch options with single branch', () => { testType.equal<$InputOptions<$Any>, { $any?: unknown }>(true) diff --git a/type-plus/ts/type_plus/branch/$is_dristributive.spec.ts b/type-plus/ts/type_plus/branch/$is_dristributive.spec.ts index 334d94ebae..3bac4b7686 100644 --- a/type-plus/ts/type_plus/branch/$is_dristributive.spec.ts +++ b/type-plus/ts/type_plus/branch/$is_dristributive.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType } from '../../index.js' import type { $IsDistributive } from './$is_distributive.js' diff --git a/type-plus/ts/type_plus/branch/$resolve_branch.spec.ts b/type-plus/ts/type_plus/branch/$resolve_branch.spec.ts index d71e843490..93ad5e0bb6 100644 --- a/type-plus/ts/type_plus/branch/$resolve_branch.spec.ts +++ b/type-plus/ts/type_plus/branch/$resolve_branch.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Any, type $Else, type $Never, type $ResolveBranch, type $SelectionBranch, type $Then } from '../../index.js' + +import { type $Any, type $Else, type $Never, type $ResolveBranch, type $SelectionBranch, type $Then,testType } from '../../index.js' import type { $Override } from './$override.js' it('returns boolean if selection is predicate', () => { diff --git a/type-plus/ts/type_plus/branch/$select.ts b/type-plus/ts/type_plus/branch/$select.ts index cf2d19d166..054f809ab8 100644 --- a/type-plus/ts/type_plus/branch/$select.ts +++ b/type-plus/ts/type_plus/branch/$select.ts @@ -1,7 +1,7 @@ -import type { $SpecialType } from '../$special_type.js' import type { $Any } from '../../any/any.js' import type { $Never } from '../../never/never.js' import type { $Unknown } from '../../unknown/unknown.js' +import type { $SpecialType } from '../$special_type.js' import type { $DistributiveDefault, $DistributiveOptions } from './$distributive.js' import type { $Exact } from './$exact.js' import type { $InputOptions } from './$input_options.js' diff --git a/type-plus/ts/type_plus/branch/$select_invert.ts b/type-plus/ts/type_plus/branch/$select_invert.ts index 702eed1406..e2a6f13042 100644 --- a/type-plus/ts/type_plus/branch/$select_invert.ts +++ b/type-plus/ts/type_plus/branch/$select_invert.ts @@ -1,7 +1,7 @@ -import type { $SpecialType } from '../$special_type.js' import type { $Any } from '../../any/any.js' import type { $Never } from '../../never/never.js' import type { $Unknown } from '../../unknown/unknown.js' +import type { $SpecialType } from '../$special_type.js' import type { $DistributiveDefault, $DistributiveOptions } from './$distributive.js' import type { $InputOptions } from './$input_options.js' import type { $IsDistributive } from './$is_distributive.js' diff --git a/type-plus/ts/type_plus/branch/$select_invert_strict.ts b/type-plus/ts/type_plus/branch/$select_invert_strict.ts index 5f41c77bd5..aa8ca94b47 100644 --- a/type-plus/ts/type_plus/branch/$select_invert_strict.ts +++ b/type-plus/ts/type_plus/branch/$select_invert_strict.ts @@ -1,7 +1,7 @@ -import type { $SpecialType } from '../$special_type.js' import type { $Any } from '../../any/any.js' import type { $Never } from '../../never/never.js' import type { $Unknown } from '../../unknown/unknown.js' +import type { $SpecialType } from '../$special_type.js' import type { $DistributiveDefault, $DistributiveOptions } from './$distributive.js' import type { $InputOptions } from './$input_options.js' import type { $IsDistributive } from './$is_distributive.js' diff --git a/type-plus/ts/type_plus/branch/$select_strict.ts b/type-plus/ts/type_plus/branch/$select_strict.ts index b4ee4138b3..0d1cc43ac7 100644 --- a/type-plus/ts/type_plus/branch/$select_strict.ts +++ b/type-plus/ts/type_plus/branch/$select_strict.ts @@ -1,7 +1,7 @@ -import type { $SpecialType } from '../$special_type.js' import type { $Any } from '../../any/any.js' import type { $Never } from '../../never/never.js' import type { $Unknown } from '../../unknown/unknown.js' +import type { $SpecialType } from '../$special_type.js' import type { $DistributiveDefault, $DistributiveOptions } from './$distributive.js' import type { $InputOptions } from './$input_options.js' import type { $IsDistributive } from './$is_distributive.js' diff --git a/type-plus/ts/undefined/has_undefined.spec.ts b/type-plus/ts/undefined/has_undefined.spec.ts index cc90b620a0..fff00443d7 100644 --- a/type-plus/ts/undefined/has_undefined.spec.ts +++ b/type-plus/ts/undefined/has_undefined.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Else, type $SelectionBranch, type $Then, type HasUndefined } from '../index.js' + +import { type $Else, type $SelectionBranch, type $Then, type HasUndefined,testType } from '../index.js' it('returns false when there is no undefined', () => { testType.equal, false>(true) diff --git a/type-plus/ts/undefined/has_undefined.ts b/type-plus/ts/undefined/has_undefined.ts index 79c98e0778..c54fc832d9 100644 --- a/type-plus/ts/undefined/has_undefined.ts +++ b/type-plus/ts/undefined/has_undefined.ts @@ -1,6 +1,6 @@ import type { $ResolveBranch } from '../type_plus/branch/$resolve_branch.js' -import type { $SelectionOptions } from '../type_plus/branch/$selection_options.js' import type { $Else, $Then } from '../type_plus/branch/$selection.js' +import type { $SelectionOptions } from '../type_plus/branch/$selection_options.js' import type { IsUndefined } from './is_undefined.js' /** diff --git a/type-plus/ts/undefined/is_not_undefined.spec.ts b/type-plus/ts/undefined/is_not_undefined.spec.ts index 3235ee2ed9..6de0a7539b 100644 --- a/type-plus/ts/undefined/is_not_undefined.spec.ts +++ b/type-plus/ts/undefined/is_not_undefined.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Else, type $Then, type IsNotUndefined } from '../index.js' + +import { type $Else, type $Then, type IsNotUndefined,testType } from '../index.js' it('returns false for undefined', () => { testType.equal, false>(true) diff --git a/type-plus/ts/undefined/is_undefined.spec.ts b/type-plus/ts/undefined/is_undefined.spec.ts index 9bc280b769..f42695b016 100644 --- a/type-plus/ts/undefined/is_undefined.spec.ts +++ b/type-plus/ts/undefined/is_undefined.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Else, type $Then, type IsUndefined } from '../index.js' + +import { type $Else, type $Then, type IsUndefined,testType } from '../index.js' it('returns true for undefined', () => { testType.equal, true>(true) diff --git a/type-plus/ts/undefined/undefined.spec.ts b/type-plus/ts/undefined/undefined.spec.ts index f99ea3ba12..0089420467 100644 --- a/type-plus/ts/undefined/undefined.spec.ts +++ b/type-plus/ts/undefined/undefined.spec.ts @@ -1,4 +1,5 @@ import { test } from '@jest/globals' + import { testType } from '../index.js' test('union behavior of undefined', () => { diff --git a/type-plus/ts/union/union.is_union.spec.ts b/type-plus/ts/union/union.is_union.spec.ts index fd31a5869d..9bed4a49cf 100644 --- a/type-plus/ts/union/union.is_union.spec.ts +++ b/type-plus/ts/union/union.is_union.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type IsUnion } from '../index.js' + +import { type IsUnion,testType } from '../index.js' it('returns false for non-union', () => { testType.equal, false>(true) diff --git a/type-plus/ts/union/union.union_type.spec.ts b/type-plus/ts/union/union.union_type.spec.ts index a0d67268e3..84ac493591 100644 --- a/type-plus/ts/union/union.union_type.spec.ts +++ b/type-plus/ts/union/union.union_type.spec.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType, type UnionType } from '../index.js' it('returns false for non-union', () => { diff --git a/type-plus/ts/unknown/is_not_unknown.spec.ts b/type-plus/ts/unknown/is_not_unknown.spec.ts index b2ac3c2e33..e68eb1da47 100644 --- a/type-plus/ts/unknown/is_not_unknown.spec.ts +++ b/type-plus/ts/unknown/is_not_unknown.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Any, type $BranchOptions, type $Else, type $Never, type $SelectionBranch, type $Then, type IsNotUnknown } from '../index.js' + +import { type $Any, type $BranchOptions, type $Else, type $Never, type $SelectionBranch, type $Then, type IsNotUnknown,testType } from '../index.js' // alternative implementation // export type IsNotUnknown< diff --git a/type-plus/ts/unknown/is_not_unknown.ts b/type-plus/ts/unknown/is_not_unknown.ts index b7359e9c07..78b8ab4cee 100644 --- a/type-plus/ts/unknown/is_not_unknown.ts +++ b/type-plus/ts/unknown/is_not_unknown.ts @@ -3,8 +3,8 @@ import type { $Never } from '../never/never.js' import type { $SpecialType } from '../type_plus/$special_type.js' import type { $InputOptions } from '../type_plus/branch/$input_options.js' import type { $ResolveBranch } from '../type_plus/branch/$resolve_branch.js' -import type { $SelectionOptions } from '../type_plus/branch/$selection_options.js' import type { $Else, $Then } from '../type_plus/branch/$selection.js' +import type { $SelectionOptions } from '../type_plus/branch/$selection_options.js' /** * 🎭 *predicate* diff --git a/type-plus/ts/unknown/is_unknown.spec.ts b/type-plus/ts/unknown/is_unknown.spec.ts index dc65c621b3..fe59240b0f 100644 --- a/type-plus/ts/unknown/is_unknown.spec.ts +++ b/type-plus/ts/unknown/is_unknown.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Any, type $BranchOptions, type $Else, type $Never, type $SelectionBranch, type $Then, type IsUnknown } from '../index.js' + +import { type $Any, type $BranchOptions, type $Else, type $Never, type $SelectionBranch, type $Then, type IsUnknown,testType } from '../index.js' // alternative implementation // export type IsUnknown< diff --git a/type-plus/ts/unknown/is_unknown.ts b/type-plus/ts/unknown/is_unknown.ts index aa48e8a3cc..9d1c0202b3 100644 --- a/type-plus/ts/unknown/is_unknown.ts +++ b/type-plus/ts/unknown/is_unknown.ts @@ -3,8 +3,8 @@ import type { $Never } from '../never/never.js' import type { $SpecialType } from '../type_plus/$special_type.js' import type { $InputOptions } from '../type_plus/branch/$input_options.js' import type { $ResolveBranch } from '../type_plus/branch/$resolve_branch.js' -import type { $SelectionOptions } from '../type_plus/branch/$selection_options.js' import type { $Else, $Then } from '../type_plus/branch/$selection.js' +import type { $SelectionOptions } from '../type_plus/branch/$selection_options.js' /** * 🎭 *predicate* diff --git a/type-plus/ts/unknown/not_unknown_or.spec.ts b/type-plus/ts/unknown/not_unknown_or.spec.ts index 3cbc4f8ed7..82862b5093 100644 --- a/type-plus/ts/unknown/not_unknown_or.spec.ts +++ b/type-plus/ts/unknown/not_unknown_or.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Unknown, type NotUnknownOr } from '../index.js' + +import { type $Unknown, type NotUnknownOr,testType } from '../index.js' it('pass through if not unknown', () => { testType.equal, number>(true) diff --git a/type-plus/ts/unknown/unknown.spec.ts b/type-plus/ts/unknown/unknown.spec.ts index 789f1922d8..0801fa8a37 100644 --- a/type-plus/ts/unknown/unknown.spec.ts +++ b/type-plus/ts/unknown/unknown.spec.ts @@ -1,5 +1,6 @@ import { it, test } from '@jest/globals' -import { testType, type $Type, type $Unknown } from '../index.js' + +import { type $Type, type $Unknown,testType } from '../index.js' test('union behavior of unknown', () => { testType.equal(true) diff --git a/type-plus/ts/utils/as.spec.ts b/type-plus/ts/utils/as.spec.ts index 0ff3bb76de..ef47c941e8 100644 --- a/type-plus/ts/utils/as.spec.ts +++ b/type-plus/ts/utils/as.spec.ts @@ -1,4 +1,5 @@ import { describe, test } from '@jest/globals' + import { amend, as, asAny, testType } from '../index.js' describe('as()', () => { diff --git a/type-plus/ts/utils/index.spec.ts b/type-plus/ts/utils/index.spec.ts index d6542f679f..45e8e6a9bd 100644 --- a/type-plus/ts/utils/index.spec.ts +++ b/type-plus/ts/utils/index.spec.ts @@ -1,5 +1,6 @@ import { describe, it } from '@jest/globals' -import { isType, testType, type CanAssign, type EitherOrBoth } from '../index.js' + +import { type CanAssign, type EitherOrBoth,isType, testType } from '../index.js' describe('Either', () => { type A = { diff --git a/type-plus/ts/utils/inspect.spec.ts b/type-plus/ts/utils/inspect.spec.ts index 9c45bd9627..ba5eb7f398 100644 --- a/type-plus/ts/utils/inspect.spec.ts +++ b/type-plus/ts/utils/inspect.spec.ts @@ -1,5 +1,6 @@ /* eslint-disable no-console */ import { expect, it, jest } from '@jest/globals' + import { inspect } from '../index.js' it('should return the same value', () => { diff --git a/type-plus/ts/utils/options.merge.unit.ts b/type-plus/ts/utils/options.merge.unit.ts index 5e42daaed1..089cfc67a8 100644 --- a/type-plus/ts/utils/options.merge.unit.ts +++ b/type-plus/ts/utils/options.merge.unit.ts @@ -1,4 +1,5 @@ import { it } from '@jest/globals' + import { testType, type TypePlusOptions } from '../index.js' it('overrides cases', () => { diff --git a/type-plus/ts/void/is_not_void.spec.ts b/type-plus/ts/void/is_not_void.spec.ts index bafd7e1d2a..3ee7f52675 100644 --- a/type-plus/ts/void/is_not_void.spec.ts +++ b/type-plus/ts/void/is_not_void.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Else, type $Then, type IsNotVoid } from '../index.js' + +import { type $Else, type $Then, type IsNotVoid,testType } from '../index.js' it('returns false for void', () => { testType.equal, false>(true) diff --git a/type-plus/ts/void/is_void.spec.ts b/type-plus/ts/void/is_void.spec.ts index f40e74a043..0eb86cadd2 100644 --- a/type-plus/ts/void/is_void.spec.ts +++ b/type-plus/ts/void/is_void.spec.ts @@ -1,5 +1,6 @@ import { it } from '@jest/globals' -import { testType, type $Else, type $Then, type IsVoid } from '../index.js' + +import { type $Else, type $Then, type IsVoid,testType } from '../index.js' it('returns true for void', () => { testType.equal, true>(true) diff --git a/type-plus/ts/void/void.spec.ts b/type-plus/ts/void/void.spec.ts index bd2cb80a99..74a9da4d03 100644 --- a/type-plus/ts/void/void.spec.ts +++ b/type-plus/ts/void/void.spec.ts @@ -1,4 +1,5 @@ import { test } from '@jest/globals' + import { testType } from '../index.js' test('union behavior of void', () => {