@@ -8,5 +8,5 @@ export const get: {
|
|||||||
} = Function.dual(2, <S>(self: React.SetStateAction<S>, prevState: S): S =>
|
} = Function.dual(2, <S>(self: React.SetStateAction<S>, prevState: S): S =>
|
||||||
typeof self === "function"
|
typeof self === "function"
|
||||||
? (self as (prevState: S) => S)(prevState)
|
? (self as (prevState: S) => S)(prevState)
|
||||||
: prevState
|
: self
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user