0.1.0 #1
@@ -3,8 +3,8 @@ import type React from "react"
|
|||||||
|
|
||||||
|
|
||||||
export const value: {
|
export const value: {
|
||||||
<S>(prevState: S): (setStateAction: React.SetStateAction<S>) => S
|
<S>(prevState: S): (self: React.SetStateAction<S>) => S
|
||||||
<S>(setStateAction: React.SetStateAction<S>, prevState: S): S
|
<S>(self: React.SetStateAction<S>, prevState: S): S
|
||||||
} = 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)
|
||||||
|
|||||||
Reference in New Issue
Block a user