UNPKG
@bemedev/basifun
Version:
latest (0.5.3)
0.5.3
0.5.2
0.5.1
0.5.0
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.1
0.2.0
0.1.6
0.1.5
0.1.4
Basic ts functions
github.com/chlbri/basifun
chlbri/basifun
@bemedev/basifun
/
lib
/
functions
/
booleans
/
switchValue.d.ts
8 lines
•
285 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
export
declare
function
switchValue<T>(
params
: {
condition
?:
boolean
;
truthy
: T;
falsy
: T; }): T;
export
declare
function
switchValue<T>(
condition
:
boolean
,
first
: T,
second
: T): T;
export
declare
const
switchV
:
typeof
switchValue;
//# sourceMappingURL=switchValue.d.ts.map