Skip to content
This repository was archived by the owner on Jun 10, 2025. It is now read-only.

Commit 8d95b8f

Browse files
committed
fix: preserve backward compatibility
1 parent d68f860 commit 8d95b8f

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,9 @@ export {
9999
undefined_ as undefined,
100100
undefinedOr,
101101
unique,
102-
unknown
102+
unknown,
103+
104+
// Backward compatibility:
105+
nullish as nil,
106+
nullishOr as nilOr
103107
}

src/prelude.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ export type Awaited<T> =
2020
export type Keyed<T = unknown> =
2121
Record<string, T | undefined>
2222

23+
/** @deprecated use {@link Nullish} */
24+
export type NilOr<T> =
25+
| undefined
26+
| null
27+
| T
28+
2329
export type Nullish<T> =
2430
| undefined
2531
| null

0 commit comments

Comments
 (0)