Commit graph

  • 7fbfce158e Improve is.infinite TypeScript type Younho Choo 2022-01-17 20:21:21 +09:00
  • d2e65aa5b8 Improve is.integer & is.safeInteger TypeScript type Younho Choo 2022-01-17 20:16:58 +09:00
  • de50144b95 Update TypeScript Younho Choo 2022-01-17 20:10:06 +09:00
  • b1efe7f5cf 4.3.0 v4.3.0 Sindre Sorhus 2022-01-17 13:04:39 +07:00
  • a5b4017d5e
    Add is.enumCase and assert.enumCase (#150) Olivier Beaulieu 2022-01-17 00:55:40 -05:00
  • 1746235db5
    Update readme.md Sindre Sorhus 2022-01-17 12:42:34 +07:00
  • 81a9db9111
    Apply suggestions from code review Olivier Beaulieu 2022-01-16 13:30:49 -05:00
  • 12a61619d0 add type guard for is.truthy to narrow result Zane Shannon 2022-01-16 15:35:19 +00:00
  • effc01e747 Added is.enumCase and assert.enumCase Olivier Beaulieu 2022-01-15 19:23:02 -05:00
  • f5cc764e22 4.2.1 v4.2.1 Sindre Sorhus 2022-01-07 21:35:19 +07:00
  • ad661ebcee
    Fix is.iterable and is.asyncIterable TypeScript types (#149) Stuart Dotson 2022-01-07 09:32:06 -05:00
  • 789678545e remove iterableiterator and fix async iterable sdotson 2022-01-07 09:13:55 -05:00
  • 291117047b fix is.iterable and add is.iterableiterator sdotson 2022-01-06 10:44:29 -05:00
  • a82aeeaa5e Add FAQ about instanceof Sindre Sorhus 2021-10-31 12:34:45 +07:00
  • 13b2343dfc 4.2.0 v4.2.0 Sindre Sorhus 2021-09-13 21:27:03 +07:00
  • a8de3d6f34
    Add is.formData and is.urlSearchParams (#139) Kayson Wu 2021-09-13 22:25:44 +08:00
  • b1fd48b6b4 fix variable name kaysonwu 2021-09-13 15:21:17 +08:00
  • 26d668c9f1 add is.urlSearchParams kaysonwu 2021-09-11 20:47:00 +08:00
  • 28231663d1 add is.formData kaysonwu 2021-09-11 18:07:50 +08:00
  • c6eac3ebd4 add is.formData kaysonwu 2021-09-11 17:26:20 +08:00
  • b007935b4b 4.1.0 v4.1.0 Sindre Sorhus 2021-09-10 15:30:39 +07:00
  • d2f98e472d
    Add is.propertyKey (#138) PopGoesTheWza 2021-09-10 10:26:13 +02:00
  • 503b189614 comment PopGoesTheWza 2021-09-10 01:16:15 +02:00
  • 6be375cee8 test: is.propertyKey PopGoesTheWza 2021-09-09 23:33:22 +02:00
  • b7bb76d96c doc: clarify PopGoesTheWza 2021-09-09 22:06:17 +02:00
  • d0071ffe6e
    Update readme.md PopGoesTheWza 2021-09-09 21:54:06 +02:00
  • d91843b089
    Update readme.md Sindre Sorhus 2021-09-10 00:12:56 +07:00
  • 1a9fdacd2d
    Update index.ts Sindre Sorhus 2021-09-10 00:12:29 +07:00
  • 07ba63da4f doc: is.properyKey PopGoesTheWza 2021-09-07 13:54:11 +02:00
  • b8922dd378 chore: relocating PopGoesTheWza 2021-09-07 12:18:53 +02:00
  • efb08e4a13 feat: is.propertyKey PopGoesTheWza 2021-09-07 10:54:53 +02:00
  • 6f2b24d822 Minor tweaks Sindre Sorhus 2021-09-07 11:41:26 +07:00
  • 238e8c80c7 4.0.1 v4.0.1 Sindre Sorhus 2021-04-22 16:01:32 +07:00
  • b748ab72b6
    Fix assertion message for .all and .any (#132) Dave Cohen 2021-04-22 04:00:08 -05:00
  • 32c2750103
    Update index.ts Sindre Sorhus 2021-04-22 15:58:46 +07:00
  • ac83b78dbf
    Update index.ts Sindre Sorhus 2021-04-22 15:57:53 +07:00
  • 773a1cfb74 assertType handles multipleValues rather than caller Dave Cohen 2021-04-21 12:05:50 -05:00
  • 5b13eeedda Add getValuesMessage option for assertType Dave Cohen 2021-04-11 11:38:48 -05:00
  • 5ed7e9bb40 Meta tweaks Sindre Sorhus 2021-03-31 01:04:39 +07:00
  • 4f8b01f2dc Rename master branch to main Sindre Sorhus 2021-01-24 14:20:06 +07:00
  • da6bb531af
    Move to GitHub Actions (#129) Richie Bendall 2021-01-02 17:25:04 +13:00
  • 73eb3d4e47 Move to GitHub Actions Richie Bendall 2021-01-02 15:09:18 +13:00
  • d528545e02 4.0.0 v4.0.0 Sindre Sorhus 2020-10-13 00:08:06 +02:00
  • 94749dbb2e
    Improve is.plainObject TypeScript type (#126) Rocktim Saikia 2020-10-13 03:30:52 +05:30
  • e0e7392a05 add a ObjectKey type rocktimsaikia 2020-10-12 22:46:49 +05:30
  • 8668c5e269 update the assertion for plainObject rocktimsaikia 2020-10-06 23:57:43 +05:30
  • 46979fad2c update index.ts rocktimsaikia 2020-10-06 23:49:00 +05:30
  • a4c1ac6452
    Update source/index.ts Rocktim Saikia 2020-10-06 23:51:01 +05:30
  • af9569bc4d replace object with Record type rocktimsaikia 2020-10-06 13:43:09 +05:30
  • bf6bba7af8 3.1.2 v3.1.2 Sindre Sorhus 2020-08-22 00:19:30 +02:00
  • d8ced89efe
    Fix using is.array in is.all (#125) Arnovsky 2020-08-21 15:18:34 -07:00
  • 428ad88d7d is.array checks if assertion is a function alex 2020-08-19 11:18:53 +03:00
  • 5feadcb0b8 3.1.1 v3.1.1 Sindre Sorhus 2020-08-16 12:30:54 +02:00
  • 4c29fb35cb
    Improve import for VS Code (#122) iyegoroff 2020-08-16 13:29:46 +03:00
  • c0446ffdfe
    Update package.json iyegoroff 2020-08-16 03:40:23 +03:00
  • 09d31733d3 3.1.0 v3.1.0 Sindre Sorhus 2020-07-25 09:14:15 +02:00
  • 3f93bf200d
    Add is.array overload that supports asserting array items (#119) Arnovsky 2020-07-25 10:11:59 +03:00
  • 274a9cc11a
    Update readme.md Sindre Sorhus 2020-07-24 17:29:26 +08:00
  • f2863e0339 Added 'type checking' tests alex 2020-07-20 16:28:53 +03:00
  • abef4aeeac Merge branch 'Arnovsky/is-array-with-assertion' of https://github.com/Arnovsky/is into Arnovsky/is-array-with-assertion Alex 2020-07-20 09:14:09 +03:00
  • 2048666c27 fixed assert guard in interface Alex 2020-07-20 09:13:38 +03:00
  • e31db97eab
    Extract necessary functions from type-fest (#120) Richie Bendall 2020-07-20 11:48:08 +12:00
  • d2a5e19034
    Export types Richie Bendall 2020-07-20 11:14:56 +12:00
  • 449823168b
    Update readme.md Arnovsky 2020-07-20 00:12:15 +03:00
  • 25aa30398a fixed consistancy in readme.md Alex 2020-07-20 00:09:31 +03:00
  • d22dcb11aa updated readme.md Alex 2020-07-20 00:08:29 +03:00
  • 1507a6db56
    Extract nessessary types from type-fest Richie Bendall 2020-07-20 08:21:03 +12:00
  • 8dd3a34bed
    Refactor to use type-fest Richie Bendall 2020-07-19 20:19:00 +12:00
  • 5a69c2af78 Change assert.array implementation Alex 2020-07-18 19:14:21 +03:00
  • 67ab8ca570
    Update source/index.ts Arnovsky 2020-07-18 18:11:48 +03:00
  • 18c4081451
    Update source/index.ts Arnovsky 2020-07-17 20:24:34 +03:00
  • cf3c14178d
    Update test/test.ts Arnovsky 2020-07-17 20:22:46 +03:00
  • 4f50fb07c0 Fixed CI Alex 2020-07-17 17:13:29 +03:00
  • 52ba09c99c Overloaded is.array to provide support for asserting on items Alex 2020-07-17 16:59:23 +03:00
  • 4b35ad5bec 3.0.0 v3.0.0 Sindre Sorhus 2020-06-28 04:22:15 +08:00
  • 47fa419e4f
    Update devDependency @types/node from v13.7.4 to v14.0.13 (#116) Bjorn Stromberg 2020-06-28 05:20:49 +09:00
  • 71ca1e5573
    Make the is() function type-safe (#117) Bjorn Stromberg 2020-06-28 05:20:36 +09:00
  • a96abee1a3
    Use shields.io for number of downloads per week (#118) Bjorn Stromberg 2020-06-27 20:13:23 +09:00
  • 5f4996f4b5 Use shields.io for number of downloads per week Bjorn Stromberg 2020-06-21 11:34:11 +09:00
  • 9c19b4e41d Use for of instead of forEach Bjorn Stromberg 2020-06-21 10:45:59 +09:00
  • b0b33a07d6 [Breaking Change] Make 'is' type-safe. Bjorn Stromberg 2020-06-21 01:08:36 +09:00
  • ae8c6053e5 Update devDependency @types/node from v13.7.4 to v14.0.13 Bjorn Stromberg 2020-06-20 17:01:41 +09:00
  • 1ffe2fb6a7
    Use string literals instead of enums (#113) Bjorn Stromberg 2020-06-20 16:28:47 +09:00
  • 7e8eeb96c2 Make argument type more specific for isOfType Bjorn Stromberg 2020-06-15 13:29:44 +09:00
  • 9c7de4f5af Remove functional changes Bjorn Stromberg 2020-06-10 19:57:50 +09:00
  • 9ee6338b23 Type guards take unknown and cast to avoid type errors Bjorn Stromberg 2020-06-10 18:32:04 +09:00
  • b909111f10 Narrow types for isOfType and consolidate typeof switch in is Bjorn Stromberg 2020-06-07 15:06:30 +09:00
  • 30572a045d Fix is.domElement to more accurately reflect that the object is an HTMLElement Bjorn Stromberg 2020-06-07 14:41:07 +09:00
  • e5eb98e4aa getObjectType doesn't necessarily return an entry on the list. How should we proceed? Bjorn Stromberg 2020-06-06 17:29:04 +09:00
  • dc348a0e49 Split TypeNames and Types into different lists Bjorn Stromberg 2020-06-06 16:52:10 +09:00
  • 6824f1446d Use string literals instead of enums Bjorn Stromberg 2020-06-04 20:24:47 +09:00
  • 9d404cad2e
    Test on Node.js 14 (#115) Bjorn Stromberg 2020-06-15 16:43:26 +09:00
  • f9b346bbbc Test against v14, the current version of node Bjorn Stromberg 2020-06-15 14:28:47 +09:00
  • fae0096eba 2.1.1 v2.1.1 Sindre Sorhus 2020-04-19 18:18:00 +08:00
  • 402fbb5a7e
    Fix #109: is.numericString behaves correctly on whitespaces (#110) Arfat Salman 2020-04-18 03:25:02 +05:30
  • 3d0bf3e7cd Fix #109: is.numericString behaves correctly on whitespaces Arfat Salman 2020-04-13 21:57:57 +05:30
  • 05cdaccf92 Update TypeScript Sindre Sorhus 2020-02-22 02:01:58 +07:00
  • 1ff389cabb 2.1.0 v2.1.0 Sindre Sorhus 2020-02-17 14:18:18 +07:00
  • d1929ad47c
    Add support for multiple predicates to is.any (#104) Dave Cohen 2020-02-16 19:06:19 -06:00
  • 9e12fe7994 Use predicate[] instead of plural Dave Cohen 2020-02-16 18:30:46 -06:00