Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#### :bug: Bug fix

- Show `Stdlib.TypedArray` completions for typed arrays. https://github.com/rescript-lang/rescript/pull/7827
- Show `Stdlib.Null` and `Stdlib.Nullable` completions for `Stdlib.null<'a>` and `Stdlib.nullable<'a>` types, respectively. https://github.com/rescript-lang/rescript/pull/7826
- Fix generation of interfaces for module types containing multiple type constraints. https://github.com/rescript-lang/rescript/pull/7825

Expand Down
1 change: 1 addition & 0 deletions packages/@rescript/runtime/Stdlib_BigInt64Array.res
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** The `BigInt64Array` typed array represents an array of 64-bit signed integers in platform byte order. See [BigInt64Array on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt64Array)
*/
@editor.completeFrom(Stdlib.TypedArray)
type t = Stdlib_TypedArray.t<bigint>

module Constants = {
Expand Down
1 change: 1 addition & 0 deletions packages/@rescript/runtime/Stdlib_BigUint64Array.res
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** The `BigUint64Array` typed array represents an array of 64-bit unsigned integers in platform byte order. See [BigUint64Array on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigUint64Array)
*/
@editor.completeFrom(Stdlib.TypedArray)
type t = Stdlib_TypedArray.t<bigint>

module Constants = {
Expand Down
1 change: 1 addition & 0 deletions packages/@rescript/runtime/Stdlib_Float32Array.res
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** The `Float32Array` typed array represents an array of 32-bit floating point numbers in platform byte order. See [Float32Array on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array)
*/
@editor.completeFrom(Stdlib.TypedArray)
type t = Stdlib_TypedArray.t<float>

module Constants = {
Expand Down
1 change: 1 addition & 0 deletions packages/@rescript/runtime/Stdlib_Float64Array.res
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** The `Float64Array` typed array represents an array of 64-bit floating point numbers in platform byte order. See [Float64Array on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array)
*/
@editor.completeFrom(Stdlib.TypedArray)
type t = Stdlib_TypedArray.t<float>

module Constants = {
Expand Down
1 change: 1 addition & 0 deletions packages/@rescript/runtime/Stdlib_Int16Array.res
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** The `Int16Array` typed array represents an array of twos-complement 16-bit signed integers in platform byte order. See [Int16Array on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array)
*/
@editor.completeFrom(Stdlib.TypedArray)
type t = Stdlib_TypedArray.t<int>

module Constants = {
Expand Down
1 change: 1 addition & 0 deletions packages/@rescript/runtime/Stdlib_Int32Array.res
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** The `Int32Array` typed array represents an array of twos-complemenet 32-bit signed integers in platform byte order. See [Int32Array on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array)
*/
@editor.completeFrom(Stdlib.TypedArray)
type t = Stdlib_TypedArray.t<int>

module Constants = {
Expand Down
1 change: 1 addition & 0 deletions packages/@rescript/runtime/Stdlib_Int8Array.res
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** The `Int8Array` typed array represents an array of twos-complement 8-bit signed integers. See [Int8Array on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array)
*/
@editor.completeFrom(Stdlib.TypedArray)
type t = Stdlib_TypedArray.t<int>

module Constants = {
Expand Down
1 change: 1 addition & 0 deletions packages/@rescript/runtime/Stdlib_Uint16Array.res
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** The `Uint16Array` typed array represents an array of 16-bit unsigned integers in platform byte order. See [Uint16Array on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array)
*/
@editor.completeFrom(Stdlib.TypedArray)
type t = Stdlib_TypedArray.t<int>

module Constants = {
Expand Down
1 change: 1 addition & 0 deletions packages/@rescript/runtime/Stdlib_Uint32Array.res
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** The `Uint32Array` typed array represents an array of 32-bit unsigned integers in platform byte order. See [Uint32Array on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array)
*/
@editor.completeFrom(Stdlib.TypedArray)
type t = Stdlib_TypedArray.t<int>

module Constants = {
Expand Down
1 change: 1 addition & 0 deletions packages/@rescript/runtime/Stdlib_Uint8Array.res
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** The `Uint8Array` typed array represents an array of 8-bit unsigned integers. See [Uint8Array on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array)
*/
@editor.completeFrom(Stdlib.TypedArray)
type t = Stdlib_TypedArray.t<int>

module Constants = {
Expand Down
1 change: 1 addition & 0 deletions packages/@rescript/runtime/Stdlib_Uint8ClampedArray.res
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** The `Uint8ClampedArray` typed array represents an array of 8-bit unsigned integers clamped to 0-255. See [Uint8ClampedArray on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray)
*/
@editor.completeFrom(Stdlib.TypedArray)
type t = Stdlib_TypedArray.t<int>

module Constants = {
Expand Down
43 changes: 43 additions & 0 deletions tests/analysis_tests/tests/src/CompletionTypedArrays.res
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
let bigInt64Array = BigInt64Array.fromLength(0)
// bigInt64Array.
// ^com

let bigUint64Array = BigUint64Array.fromLength(0)
// bigUint64Array.
// ^com

let float32Array = Float32Array.fromLength(0)
// float32Array.
// ^com

let float64Array = Float64Array.fromLength(0)
// float64Array.
// ^com

let int16Array = Int16Array.fromLength(0)
// int16Array.
// ^com

let int32Array = Int32Array.fromLength(0)
// int32Array.
// ^com

let int8Array = Int8Array.fromLength(0)
// int8Array.
// ^com

let uint16Array = Uint16Array.fromLength(0)
// uint16Array.
// ^com

let uint32Array = Uint32Array.fromLength(0)
// uint32Array.
// ^com

let uint8Array = Uint8Array.fromLength(0)
// uint8Array.
// ^com

let uint8ClampedArray = Uint8ClampedArray.fromLength(0)
// uint8ClampedArray.
// ^com
Loading
Loading