UNPKG
mezzanine
Version:
latest (0.2.1)
0.2.1
0.2.0
0.1.3
0.1.2
0.1.1
0.1.0
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
Fantasy land union types with pattern matching
github.com/zerobias/mezzanine
zerobias/mezzanine
mezzanine
/
src
/
index.h.js
13 lines
(10 loc)
•
223 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
//@flow
'use strict'
export
type
PropDescriptor
<+
Prop
=*> = {
configurable
?: bool,
enumerable
?: bool,
get
?:
() =>
Prop
,
value
?:
Prop
,
set
?:
(
obj
:
Prop
) =>
void
, }
export
type
Descriptor
<T=*> = {[
key
:
string
]: T}