27 Commits

Author SHA1 Message Date
Sindre Sorhus
3ac9f35397
Add ESLint rule to ensure all source files have empty exports (#1244) 2025-09-25 22:07:24 +09:00
Allen Hernandez
f03d4608e1
Fix AbstractClass link to TS docs (#1184) 2025-06-11 14:12:51 +02:00
Sindre Sorhus
a0a803bfba Move JsonValue to a separate file 2025-05-13 03:57:19 +07:00
Alexander J. Vincent
7294cf0e14
Class: Fix type inference (#701) 2023-11-13 15:20:54 +07:00
Alexander J. Vincent
8edb68137f
Fix accessing prototype property when using Class and AbstractClass types (#632) 2023-06-20 12:19:36 +03:00
Ray Wong
9b12767a2f
Add AbstractClass type (#559) 2023-03-11 22:33:52 +07:00
Chris Vaszauskas
311051cc05
JsonValue: Fix support for readonly arrays (#549) 2023-01-30 18:28:06 +07:00
skarab42
f3b13e30f8
Fix PackageJson and JsonObject types (#465) 2022-09-21 13:58:58 +07:00
Jonah Snider
043b732bf0
Improve @category doc comments (#331) 2021-12-01 23:06:04 +07:00
Darcy Parker
5349d27008 Add Jsonify type (#244)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2021-08-06 02:50:54 +02:00
Sindre Sorhus
49d0db8986 Add Constructor type
Fixes #155
2021-08-06 02:02:57 +02:00
Sindre Sorhus
a55ebee883 Require TypeScript 4.2 and Node.js 12.20 2021-08-06 01:37:41 +02:00
Ryan Sonshine
6b8bee7d0d
Add @category JSDoc tag to improve reference docs generation (#209) 2021-05-19 12:29:58 +07:00
Sindre Sorhus
52dd19ab67 Refactoring 2021-05-04 14:15:17 +07:00
Carl Patenaude-Poulin
ed5f3d360f
Fix TS type reference (#187) 2021-03-10 14:42:36 +07:00
Sindre Sorhus
c4c7a66dab Move TypedArray type into its own file 2020-12-16 15:19:03 +07:00
Sindre Sorhus
198f2c2e01 Fix linting 2020-03-10 12:08:43 +08:00
Sindre Sorhus
a5fb5a1d07 Require Node.js 10 2020-03-09 13:51:42 +08:00
Xiao Liang
6c105fb818
Allow all keys to be optional in the JsonObject type (#65) 2020-02-15 02:50:07 +07:00
Sindre Sorhus
5c6ad37409 Move the Opaque type to a separate file 2019-08-03 15:44:24 +02:00
Will Hoskings
681f59b36c Add Opaque type (#53)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
Co-authored-by: Dimitri Benin <BendingBender@users.noreply.github.com>
2019-08-03 15:30:30 +02:00
Fabio Spampinato
8b8dd4ddd0 Add an optional “Argument” type to the “Class” type (#52) 2019-07-27 03:52:40 +07:00
Sindre Sorhus
aa1ae3b1c0
Document how to use JsonObject (#46)
Fixes #15
2019-07-05 16:31:21 +07:00
Sindre Sorhus
40a19c913c Require Node.js 8 2019-06-07 14:31:22 +07:00
Sam Verschueren
426ccd34e5 Add esnext lib reference for BigInt (#37) 2019-05-15 18:34:37 +07:00
Sindre Sorhus
aacf829b86 Add BigInt support to the Primitive and TypedArray type
Closes #25
2019-05-12 21:55:03 +07:00
Sindre Sorhus
28981fd2c7 Split the types out into separate files 2019-04-19 15:48:28 +07:00