0.2.5 #43
@@ -3,8 +3,8 @@ import type * as React from "react"
|
|||||||
|
|
||||||
|
|
||||||
export const value: {
|
export const value: {
|
||||||
<S>(prevState: S): (self: React.SetStateAction<S>) => S
|
|
||||||
<S>(self: React.SetStateAction<S>, prevState: S): S
|
<S>(self: React.SetStateAction<S>, prevState: S): S
|
||||||
|
<S>(prevState: S): (self: React.SetStateAction<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