@tb-dev/utils 4.0.10 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/types.d.ts +2 -0
  2. package/package.json +4 -4
package/dist/types.d.ts CHANGED
@@ -13,6 +13,8 @@ export type MaybeSet<T> = T | Set<T>;
13
13
  export type Nil = null | undefined;
14
14
  /** Something may be nullish. */
15
15
  export type Nullish<T> = T | Nil;
16
+ /** Something may be nullish. */
17
+ export type Option<T> = Nullish<T>;
16
18
  /** Constructs a type where all properties of `T` may be null. */
17
19
  export type PartialNull<T> = {
18
20
  [P in keyof T]: T[P] | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tb-dev/utils",
3
- "version": "4.0.10",
3
+ "version": "4.1.0",
4
4
  "description": "TypeScript utils",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -24,13 +24,13 @@
24
24
  ],
25
25
  "devDependencies": {
26
26
  "@tb-dev/eslint-config": "^5.4.22",
27
- "@types/node": "^22.10.1",
27
+ "@types/node": "^22.10.2",
28
28
  "@vitest/ui": "^2.1.8",
29
29
  "eslint": "^9.16.0",
30
30
  "prettier": "^3.4.2",
31
31
  "tslib": "^2.8.1",
32
- "typedoc": "^0.27.3",
33
- "typedoc-plugin-mdn-links": "^4.0.3",
32
+ "typedoc": "^0.27.4",
33
+ "typedoc-plugin-mdn-links": "^4.0.4",
34
34
  "typescript": "^5.7.2",
35
35
  "vite": "^6.0.3",
36
36
  "vite-plugin-dts": "^4.3.0",