typescript(option): refactor: islotated T | null in a Nullable internal type and updated the docs
Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
6bd58b46ff
commit
689c746682
3 changed files with 11 additions and 3 deletions
typescript/option/docs
|
@ -194,7 +194,7 @@ A function to create options from nullable values.
|
|||
### Signature
|
||||
|
||||
```ts
|
||||
const fromNullable: <T>(value: T | null) => Option<T>
|
||||
const fromNullable: <T>(value: Nullable<T>) => Option<T>
|
||||
```
|
||||
|
||||
### Usage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue