Skip to content

Commit 26870fc

Browse files
cknittzth
authored andcommitted
Add .resi for Core__Type
1 parent 61b4b1d commit 26870fc

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/Core__Type.resi

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
type t = [#undefined | #object | #boolean | #number | #bigint | #string | #symbol | #function]
2+
3+
external typeof: 'a => t = "#typeof"
4+
5+
module Classify: {
6+
type function
7+
type object
8+
type symbol
9+
10+
type t =
11+
| Bool(bool)
12+
| Null
13+
| Undefined
14+
| String(string)
15+
| Number(float)
16+
| Object(object)
17+
| Function(function)
18+
| Symbol(symbol)
19+
20+
let classify: 'a => t
21+
}

0 commit comments

Comments
 (0)