Skip to content

Commit 2f21503

Browse files
committed
Update npm package, remove another unused one, and fix some typing errors that started popping when we moved to yarn
Updating `es-check` managed to solve a problem about a missing type file for `minimatch` which I couldn't get around any other way
1 parent 144dc44 commit 2f21503

File tree

3 files changed

+106
-413
lines changed

3 files changed

+106
-413
lines changed

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
{
22
"dependencies": {
33
"browser-ui-test": "^0.22.2",
4-
"es-check": "^6.2.1",
4+
"es-check": "^9.4.4",
55
"eslint": "^8.57.1",
66
"typescript": "^5.8.3"
7-
},
8-
"devDependencies": {
9-
"@types/node": "^24.10.0"
107
}
118
}

src/librustdoc/html/static/js/stringdex.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2282,7 +2282,7 @@ function loadDatabase(hooks) {
22822282
*/
22832283
class InlineNeighborsTree {
22842284
/**
2285-
* @param {Uint8Array} encoded
2285+
* @param {Uint8Array<ArrayBuffer>} encoded
22862286
* @param {number} start
22872287
*/
22882288
constructor(
@@ -2654,7 +2654,7 @@ function loadDatabase(hooks) {
26542654

26552655
/**
26562656
* @param {string} inputBase64
2657-
* @returns {[Uint8Array, SearchTree]}
2657+
* @returns {[Uint8Array<ArrayBuffer>, SearchTree]}
26582658
*/
26592659
function makeSearchTreeFromBase64(inputBase64) {
26602660
const input = makeUint8ArrayFromBase64(inputBase64);
@@ -3305,7 +3305,7 @@ if (typeof window !== "undefined") {
33053305
// eslint-disable-next-line max-len
33063306
// polyfill https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array/fromBase64
33073307
/**
3308-
* @type {function(string): Uint8Array} base64
3308+
* @type {function(string): Uint8Array<ArrayBuffer>} base64
33093309
*/
33103310
//@ts-expect-error
33113311
const makeUint8ArrayFromBase64 = Uint8Array.fromBase64 ? Uint8Array.fromBase64 : (string => {
@@ -3318,7 +3318,7 @@ const makeUint8ArrayFromBase64 = Uint8Array.fromBase64 ? Uint8Array.fromBase64 :
33183318
return bytes;
33193319
});
33203320
/**
3321-
* @type {function(string): Uint8Array} base64
3321+
* @type {function(string): Uint8Array<ArrayBuffer>} base64
33223322
*/
33233323
//@ts-expect-error
33243324
const makeUint8ArrayFromHex = Uint8Array.fromHex ? Uint8Array.fromHex : (string => {

0 commit comments

Comments
 (0)