Skip to content

Commit 5536f8a

Browse files
committed
Fix: New typings spec on README
1 parent 96e6304 commit 5536f8a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Nullish class with with nullsafe abilities. Instances will have a falsy boolean
6464

6565
Instance of `Nullsafe`, this instance will be returned for all nullish access in a proxied object, enabling identity comparison `value is undefined` for code clarity.
6666

67-
### function `nullsafe: (o: T) -> T`
67+
### function `nullsafe: (o: T) -> T | NullSafe | NullSafeProxy[T]`
6868

6969
Receives an object `o` as argument.
7070

@@ -74,7 +74,7 @@ return `undefined` if `o` is `None` or `undefined`, otherwise return the proxied
7474

7575
This function is **generic typed** (`(o: T) -> T`), code autocompletions and linters functionalities will remain. Disclaimer: If the object was not typed before proxy, it obviously won't come out typed out of the blue.
7676

77-
### function `_: (o: T) -> T` (alias to `nullsafe`)
77+
### function `_: (o: T) -> T | NullSafe | NullSafeProxy[T]` (alias to `nullsafe`)
7878

7979
Alias to `nullsafe`, used for better code clarity.
8080

0 commit comments

Comments
 (0)