UNPKG
fully-optional
Version:
latest (1.2.0)
1.2.0
1.1.5
1.1.4
1.1.3
1.1.1
1.1.0
1.0.0
0.0.5
0.0.4
0.0.3
<div align="center">
github.com/YuriiOstapchuk/fully-optional
YuriiOstapchuk/fully-optional
fully-optional
/
dist
/
commonjs
/
withDefault.d.ts
5 lines
•
283 B
TypeScript
View Raw
1
2
3
4
5
import
{
Optional
}
from
'./types'
;
export
declare
function
withDefault<T, R>(
value
:
Optional
<T>,
defaultValue
: R): T | R;
export
declare
function
withDefault<T, R>(
defaultValue
: R):
(
value
:
Optional
<T>
) =>
T | R;
export
default
withDefault;
//# sourceMappingURL=withDefault.d.ts.map