UNPKG
@monstermann/fn
Version:
latest (0.4.7)
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.1
0.3.0
0.2.0
0.1.1
0.1.0
0.0.0
A utility library for TypeScript.
michaelostermann.github.io/fn
MichaelOstermann/fn
@monstermann/fn
/
dist
/
internals
/
types.d.ts
7 lines
(6 loc)
•
279 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
{
IsLiteral
}
from
"type-fest"
;
//#region src/internals/types.d.ts
type
NonNil
<T> =
Exclude
<T,
null
|
undefined
>;
type
IsLiteral
$1<T> =
IsLiteral
<T>
extends
true
?
true
: T
extends
null
|
undefined
?
true
:
false
;
//#endregion
export
{
IsLiteral
$1
as
IsLiteral
,
NonNil
};