UNPKG
react-tiniest-form
Version:
latest (1.1.2)
1.1.2
1.0.2
1.0.1
1.0.0
0.0.4
0.0.3
0.0.2
0.0.1
the tiniest form
n0eyes.github.io/react-tiniest-form
n0eyes/react-tiniest-form
react-tiniest-form
/
dist
/
types
/
@common
/
invariantOf.d.ts
8 lines
(7 loc)
•
238 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
declare
const
tag
: unique
symbol
;
export
type
InvariantOf
<T> = T &
InvariantBrand
<T>;
export
interface
InvariantBrand
<T> {
readonly
[tag]:
(
args
: T
) =>
T; }
export
declare
const
invariantOf
: <T>
(
args
: T
) =>
InvariantOf
<T>;
export
{};