Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit 40da568

Browse files
committed
Js_types -> Runtime_types
1 parent 8010ae9 commit 40da568

28 files changed

+38
-38
lines changed

core/src/Core__Array.res

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ external getUnsafe: (array<'a>, int) => 'a = "%array_unsafe_get"
44
external setUnsafe: (array<'a>, int, 'a) => unit = "%array_unsafe_set"
55

66
@val external fromIterator: Core__Iterator.t<'a> => array<'a> = "Array.from"
7-
@val external fromArrayLike: Js_types.arrayLike<'a> => array<'a> = "Array.from"
7+
@val external fromArrayLike: Runtime_types.arrayLike<'a> => array<'a> = "Array.from"
88
@val
9-
external fromArrayLikeWithMap: (Js_types.arrayLike<'a>, 'a => 'b) => array<'b> = "Array.from"
9+
external fromArrayLikeWithMap: (Runtime_types.arrayLike<'a>, 'a => 'b) => array<'b> = "Array.from"
1010

1111
@send external fillAll: (array<'a>, 'a) => unit = "fill"
1212

core/src/Core__Array.resi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
external fromIterator: Core__Iterator.t<'a> => array<'a> = "Array.from"
1414

1515
// TODO: Docs
16-
@val external fromArrayLike: Js_types.arrayLike<'a> => array<'a> = "Array.from"
16+
@val external fromArrayLike: Runtime_types.arrayLike<'a> => array<'a> = "Array.from"
1717

1818
// TODO: Docs
1919
@val
20-
external fromArrayLikeWithMap: (Js_types.arrayLike<'a>, 'a => 'b) => array<'b> = "Array.from"
20+
external fromArrayLikeWithMap: (Runtime_types.arrayLike<'a>, 'a => 'b) => array<'b> = "Array.from"
2121

2222
/**
2323
`make(~length, init)`

core/src/Core__ArrayBuffer.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
type t = Js_types.arrayBuffer
1+
type t = Runtime_types.arrayBuffer
22

33
@new external make: int => t = "ArrayBuffer"
44
@get external byteLength: t => int = "byteLength"

core/src/Core__Date.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
type t = Js_types.date
1+
type t = Runtime_types.date
22

33
type msSinceEpoch = float
44

core/src/Core__Date.resi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
A type representing a JavaScript date.
77
*/
8-
type t = Js_types.date
8+
type t = Runtime_types.date
99

1010
/**
1111
Time, in milliseconds, since / until the UNIX epoch (January 1, 1970 00:00:00 UTC).

core/src/Core__Error.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
type t = Js_types.jsExn
1+
type t = Runtime_types.jsExn
22

33
external fromException: exn => option<t> = "?as_js_exn"
44
external toException: t => exn = "%identity"

core/src/Core__Error.resi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ See [`Error`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/
55
*/
66

77
/** Represents a JavaScript exception. */
8-
type t = Js_types.jsExn
8+
type t = Runtime_types.jsExn
99

1010
external fromException: exn => option<t> = "?as_js_exn"
1111

core/src/Core__Global.res

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
type timeoutId = Js_types.timeoutId
1+
type timeoutId = Runtime_types.timeoutId
22

33
@val external setTimeout: (unit => unit, int) => timeoutId = "setTimeout"
44
@val external setTimeoutFloat: (unit => unit, float) => timeoutId = "setTimeout"
55
@val external clearTimeout: timeoutId => unit = "clearTimeout"
66

7-
type intervalId = Js_types.intervalId
7+
type intervalId = Runtime_types.intervalId
88

99
@val external setInterval: (unit => unit, int) => intervalId = "setInterval"
1010
@val external setIntervalFloat: (unit => unit, float) => intervalId = "setInterval"

core/src/Core__Global.resi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ An `id` representing a timeout started via `setTimeout`.
77

88
See [`setTimeout`](https://developer.mozilla.org/en-US/docs/Web/API/setTimeout) on MDN.
99
*/
10-
type timeoutId = Js_types.timeoutId
10+
type timeoutId = Runtime_types.timeoutId
1111

1212
/**
1313
`setTimeout(callback, durationInMilliseconds)` starts a timer that will execute `callback` after `durationInMilliseconds`.
@@ -66,7 +66,7 @@ An `id` representing an interval started via `setInterval`.
6666

6767
See [`setInterval`](https://developer.mozilla.org/en-US/docs/Web/API/setInterval) on MDN.
6868
*/
69-
type intervalId = Js_types.intervalId
69+
type intervalId = Runtime_types.intervalId
7070

7171
/**
7272
`setInterval(callback, intervalInMilliseconds)` starts an interval that will execute `callback` every `durationInMilliseconds` milliseconds.

core/src/Core__JSON.res

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@unboxed
2-
type rec t = Js_types.json =
2+
type rec t = Runtime_types.json =
33
| Boolean(bool)
44
| @as(null) Null
55
| String(string)
@@ -54,8 +54,8 @@ module Classify = {
5454
external _asBool: 'a => bool = "%identity"
5555
external _asString: 'a => string = "%identity"
5656
external _asFloat: 'a => float = "%identity"
57-
external _asArray: 'a => array<Js_types.json> = "%identity"
58-
external _asDict: 'a => Core__Dict.t<Js_types.json> = "%identity"
57+
external _asArray: 'a => array<Runtime_types.json> = "%identity"
58+
external _asDict: 'a => Core__Dict.t<Runtime_types.json> = "%identity"
5959

6060
let classify = value => {
6161
switch _internalClass(value) {

core/src/Core__JSON.resi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Functions for interacting with JSON.
66
A type representing a JSON object.
77
*/
88
@unboxed
9-
type rec t = Js_types.json =
9+
type rec t = Runtime_types.json =
1010
| Boolean(bool)
1111
| @as(null) Null
1212
| String(string)

core/src/Core__Map.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
type t<'k, 'v> = Js_types.map<'k, 'v>
1+
type t<'k, 'v> = Runtime_types.map<'k, 'v>
22

33
@new external make: unit => t<'k, 'v> = "Map"
44
@new external fromArray: array<('k, 'v)> => t<'k, 'v> = "Map"

core/src/Core__Map.resi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ See [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Gl
77
/**
88
Type representing an instance of `Map`.
99
*/
10-
type t<'k, 'v> = Js_types.map<'k, 'v>
10+
type t<'k, 'v> = Runtime_types.map<'k, 'v>
1111

1212
/**
1313
Creates a new, mutable JavaScript `Map`. A `Map` can have any values as both keys and values.

core/src/Core__Null.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@unboxed
2-
type t<'a> = Js_types.null<'a> =
2+
type t<'a> = Runtime_types.null<'a> =
33
| Value('a)
44
| @as(null) Null
55

core/src/Core__Null.resi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ If you also need to cover `undefined`, check out `Nullable` instead.
88
A type representing a value that can be either `'a` or `null`.
99
*/
1010
@unboxed
11-
type t<'a> = Js_types.null<'a> =
11+
type t<'a> = Runtime_types.null<'a> =
1212
| Value('a)
1313
| @as(null) Null
1414

core/src/Core__Nullable.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@unboxed
2-
type t<'a> = Js_types.nullable<'a> =
2+
type t<'a> = Runtime_types.nullable<'a> =
33
| Value('a)
44
| @as(null) Null
55
| @as(undefined) Undefined

core/src/Core__Nullable.resi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Type representing a nullable value.
99
A nullable value can be the value `'a`, `null` or `undefined`.
1010
*/
1111
@unboxed
12-
type t<'a> = Js_types.nullable<'a> =
12+
type t<'a> = Runtime_types.nullable<'a> =
1313
| Value('a)
1414
| @as(null) Null
1515
| @as(undefined) Undefined

core/src/Core__RegExp.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
type t = Js_types.regExp
1+
type t = Runtime_types.regExp
22

33
module Result = {
44
type t = array<option<string>>

core/src/Core__RegExp.resi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ See [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference
77
/**
88
Type representing an instantiated `RegExp`.
99
*/
10-
type t = Js_types.regExp
10+
type t = Runtime_types.regExp
1111

1212
module Result: {
1313
/**

core/src/Core__Set.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
type t<'a> = Js_types.set<'a>
1+
type t<'a> = Runtime_types.set<'a>
22

33
@new external make: unit => t<'a> = "Set"
44
@new external fromArray: array<'a> => t<'a> = "Set"

core/src/Core__Set.resi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ See [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Gl
77
/**
88
Type representing an instance of `Set`.
99
*/
10-
type t<'a> = Js_types.set<'a>
10+
type t<'a> = Runtime_types.set<'a>
1111

1212
/**
1313
Creates a new, mutable JavaScript `Set`. A `Set` is a collection of unique values.

core/src/Core__Symbol.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
type t = Js_types.symbol
1+
type t = Runtime_types.symbol
22

33
@val external make: string => t = "Symbol"
44
@val external getFor: string => t = "Symbol.for"

core/src/Core__WeakMap.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
type t<'k, 'v> = Js_types.weakMap<'k, 'v>
1+
type t<'k, 'v> = Runtime_types.weakMap<'k, 'v>
22

33
@new external make: unit => t<'k, 'v> = "WeakMap"
44

core/src/Core__WeakSet.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
type t<'a> = Js_types.weakSet<'a>
1+
type t<'a> = Runtime_types.weakSet<'a>
22

33
@new external make: unit => t<'a> = "WeakSet"
44

core/src/RescriptCore.res

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ module BigUint64Array = Core__BigUint64Array
4444

4545
module Intl = Core__Intl
4646

47-
@val external window: Js_types.window = "window"
48-
@val external document: Js_types.document = "document"
47+
@val external window: Runtime_types.window = "window"
48+
@val external document: Runtime_types.document = "document"
4949
@val external globalThis: {..} = "globalThis"
5050

5151
external null: Core__Nullable.t<'a> = "#null"
@@ -105,10 +105,10 @@ module Option = Core__Option
105105
module List = Core__List
106106
module Result = Core__Result
107107

108-
type null<+'a> = Js_types.null<'a>
108+
type null<+'a> = Runtime_types.null<'a>
109109

110-
type undefined<+'a> = Js_types.undefined<'a>
110+
type undefined<+'a> = Runtime_types.undefined<'a>
111111

112-
type nullable<+'a> = Js_types.nullable<'a>
112+
type nullable<+'a> = Runtime_types.nullable<'a>
113113

114114
let panic = Core__Error.panic
File renamed without changes.
File renamed without changes.

stdlib-mini/src/stdlib_mini.res

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,14 @@ module Js = {
9595
/**
9696
Nullable value of this type can be either null or 'a. This type is equivalent to Js.Null.t.
9797
*/
98-
type null<+'a> = Js_types.null<'a>
98+
type null<+'a> = Runtime_types.null<'a>
9999

100100
/**
101101
A value of this type can be either undefined or 'a. This type is equivalent to Js.Undefined.t.
102102
*/
103-
type undefined<+'a> = Js_types.undefined<'a>
103+
type undefined<+'a> = Runtime_types.undefined<'a>
104104

105-
type nullable<+'a> = Js_types.nullable<'a>
105+
type nullable<+'a> = Runtime_types.nullable<'a>
106106

107107
module Undefined = {
108108
external empty: undefined<'a> = "#undefined"

0 commit comments

Comments
 (0)