mirror of
https://github.com/discordjs/discord-api-types.git
synced 2026-06-02 08:50:09 +00:00
chore(deps): update dependency typescript to v6 (#1594)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Vlad Frangu <me@vladfrangu.dev>
This commit is contained in:
13
deno/rest/v10/mod.ts
generated
13
deno/rest/v10/mod.ts
generated
@@ -1114,8 +1114,8 @@ export const Routes = {
|
||||
},
|
||||
};
|
||||
|
||||
for (const [key, fn] of Object.entries(Routes)) {
|
||||
Routes[key as keyof typeof Routes] = (...args: (boolean | number | string | undefined)[]) => {
|
||||
for (const [key, fn] of Object.entries(Routes) as [keyof typeof Routes, (...args: any[]) => string][]) {
|
||||
Routes[key] = ((...args: any[]) => {
|
||||
const escaped = args.map((arg) => {
|
||||
if (arg) {
|
||||
// Skip already "safe" urls
|
||||
@@ -1128,9 +1128,10 @@ for (const [key, fn] of Object.entries(Routes)) {
|
||||
|
||||
return arg;
|
||||
});
|
||||
|
||||
// eslint-disable-next-line no-useless-call
|
||||
return fn.call(null, ...escaped);
|
||||
};
|
||||
}) as any;
|
||||
}
|
||||
|
||||
// Freeze the object so it can't be changed
|
||||
@@ -1445,8 +1446,8 @@ export const CDNRoutes = {
|
||||
},
|
||||
};
|
||||
|
||||
for (const [key, fn] of Object.entries(CDNRoutes)) {
|
||||
CDNRoutes[key as keyof typeof CDNRoutes] = (...args: (boolean | number | string | undefined)[]) => {
|
||||
for (const [key, fn] of Object.entries(CDNRoutes) as [keyof typeof CDNRoutes, (...args: any[]) => string][]) {
|
||||
CDNRoutes[key] = ((...args: any[]) => {
|
||||
const escaped = args.map((arg) => {
|
||||
if (arg) {
|
||||
// Skip already "safe" urls
|
||||
@@ -1461,7 +1462,7 @@ for (const [key, fn] of Object.entries(CDNRoutes)) {
|
||||
});
|
||||
// eslint-disable-next-line no-useless-call
|
||||
return fn.call(null, ...escaped);
|
||||
};
|
||||
}) as any;
|
||||
}
|
||||
|
||||
// Freeze the object so it can't be changed
|
||||
|
||||
7
deno/rest/v6/mod.ts
generated
7
deno/rest/v6/mod.ts
generated
@@ -522,8 +522,8 @@ export const Routes = {
|
||||
},
|
||||
};
|
||||
|
||||
for (const [key, fn] of Object.entries(Routes)) {
|
||||
Routes[key] = (...args: (boolean | number | string | undefined)[]) => {
|
||||
for (const [key, fn] of Object.entries(Routes) as [keyof typeof Routes, (...args: any[]) => string][]) {
|
||||
Routes[key] = ((...args: any[]) => {
|
||||
const escaped = args.map((arg) => {
|
||||
if (arg) {
|
||||
// Skip already "safe" urls
|
||||
@@ -536,9 +536,10 @@ for (const [key, fn] of Object.entries(Routes)) {
|
||||
|
||||
return arg;
|
||||
});
|
||||
|
||||
// eslint-disable-next-line no-useless-call
|
||||
return fn.call(null, ...escaped);
|
||||
};
|
||||
}) as any;
|
||||
}
|
||||
|
||||
// Freeze the object so it can't be changed
|
||||
|
||||
7
deno/rest/v8/mod.ts
generated
7
deno/rest/v8/mod.ts
generated
@@ -778,8 +778,8 @@ export const Routes = {
|
||||
},
|
||||
};
|
||||
|
||||
for (const [key, fn] of Object.entries(Routes)) {
|
||||
Routes[key] = (...args: (boolean | number | string | undefined)[]) => {
|
||||
for (const [key, fn] of Object.entries(Routes) as [keyof typeof Routes, (...args: any[]) => string][]) {
|
||||
Routes[key] = ((...args: any[]) => {
|
||||
const escaped = args.map((arg) => {
|
||||
if (arg) {
|
||||
// Skip already "safe" urls
|
||||
@@ -792,9 +792,10 @@ for (const [key, fn] of Object.entries(Routes)) {
|
||||
|
||||
return arg;
|
||||
});
|
||||
|
||||
// eslint-disable-next-line no-useless-call
|
||||
return fn.call(null, ...escaped);
|
||||
};
|
||||
}) as any;
|
||||
}
|
||||
|
||||
// Freeze the object so it can't be changed
|
||||
|
||||
13
deno/rest/v9/mod.ts
generated
13
deno/rest/v9/mod.ts
generated
@@ -1123,8 +1123,8 @@ export const Routes = {
|
||||
},
|
||||
};
|
||||
|
||||
for (const [key, fn] of Object.entries(Routes)) {
|
||||
Routes[key as keyof typeof Routes] = (...args: (boolean | number | string | undefined)[]) => {
|
||||
for (const [key, fn] of Object.entries(Routes) as [keyof typeof Routes, (...args: any[]) => string][]) {
|
||||
Routes[key] = ((...args: any[]) => {
|
||||
const escaped = args.map((arg) => {
|
||||
if (arg) {
|
||||
// Skip already "safe" urls
|
||||
@@ -1137,9 +1137,10 @@ for (const [key, fn] of Object.entries(Routes)) {
|
||||
|
||||
return arg;
|
||||
});
|
||||
|
||||
// eslint-disable-next-line no-useless-call
|
||||
return fn.call(null, ...escaped);
|
||||
};
|
||||
}) as any;
|
||||
}
|
||||
|
||||
// Freeze the object so it can't be changed
|
||||
@@ -1454,8 +1455,8 @@ export const CDNRoutes = {
|
||||
},
|
||||
};
|
||||
|
||||
for (const [key, fn] of Object.entries(CDNRoutes)) {
|
||||
CDNRoutes[key as keyof typeof CDNRoutes] = (...args: (boolean | number | string | undefined)[]) => {
|
||||
for (const [key, fn] of Object.entries(CDNRoutes) as [keyof typeof CDNRoutes, (...args: any[]) => string][]) {
|
||||
CDNRoutes[key] = ((...args: any[]) => {
|
||||
const escaped = args.map((arg) => {
|
||||
if (arg) {
|
||||
// Skip already "safe" urls
|
||||
@@ -1470,7 +1471,7 @@ for (const [key, fn] of Object.entries(CDNRoutes)) {
|
||||
});
|
||||
// eslint-disable-next-line no-useless-call
|
||||
return fn.call(null, ...escaped);
|
||||
};
|
||||
}) as any;
|
||||
}
|
||||
|
||||
// Freeze the object so it can't be changed
|
||||
|
||||
@@ -160,7 +160,7 @@
|
||||
"ts-morph": "^27.0.0",
|
||||
"tsutils": "^3.21.0",
|
||||
"tsx": "^4.20.3",
|
||||
"typescript": "^5.8.3",
|
||||
"typescript": "^6.0.0",
|
||||
"typescript-eslint": "^8.33.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
|
||||
@@ -1114,8 +1114,8 @@ export const Routes = {
|
||||
},
|
||||
};
|
||||
|
||||
for (const [key, fn] of Object.entries(Routes)) {
|
||||
Routes[key as keyof typeof Routes] = (...args: (boolean | number | string | undefined)[]) => {
|
||||
for (const [key, fn] of Object.entries(Routes) as [keyof typeof Routes, (...args: any[]) => string][]) {
|
||||
Routes[key] = ((...args: any[]) => {
|
||||
const escaped = args.map((arg) => {
|
||||
if (arg) {
|
||||
// Skip already "safe" urls
|
||||
@@ -1128,9 +1128,10 @@ for (const [key, fn] of Object.entries(Routes)) {
|
||||
|
||||
return arg;
|
||||
});
|
||||
|
||||
// eslint-disable-next-line no-useless-call
|
||||
return fn.call(null, ...escaped);
|
||||
};
|
||||
}) as any;
|
||||
}
|
||||
|
||||
// Freeze the object so it can't be changed
|
||||
@@ -1445,8 +1446,8 @@ export const CDNRoutes = {
|
||||
},
|
||||
};
|
||||
|
||||
for (const [key, fn] of Object.entries(CDNRoutes)) {
|
||||
CDNRoutes[key as keyof typeof CDNRoutes] = (...args: (boolean | number | string | undefined)[]) => {
|
||||
for (const [key, fn] of Object.entries(CDNRoutes) as [keyof typeof CDNRoutes, (...args: any[]) => string][]) {
|
||||
CDNRoutes[key] = ((...args: any[]) => {
|
||||
const escaped = args.map((arg) => {
|
||||
if (arg) {
|
||||
// Skip already "safe" urls
|
||||
@@ -1461,7 +1462,7 @@ for (const [key, fn] of Object.entries(CDNRoutes)) {
|
||||
});
|
||||
// eslint-disable-next-line no-useless-call
|
||||
return fn.call(null, ...escaped);
|
||||
};
|
||||
}) as any;
|
||||
}
|
||||
|
||||
// Freeze the object so it can't be changed
|
||||
|
||||
@@ -522,8 +522,8 @@ export const Routes = {
|
||||
},
|
||||
};
|
||||
|
||||
for (const [key, fn] of Object.entries(Routes)) {
|
||||
Routes[key] = (...args: (boolean | number | string | undefined)[]) => {
|
||||
for (const [key, fn] of Object.entries(Routes) as [keyof typeof Routes, (...args: any[]) => string][]) {
|
||||
Routes[key] = ((...args: any[]) => {
|
||||
const escaped = args.map((arg) => {
|
||||
if (arg) {
|
||||
// Skip already "safe" urls
|
||||
@@ -536,9 +536,10 @@ for (const [key, fn] of Object.entries(Routes)) {
|
||||
|
||||
return arg;
|
||||
});
|
||||
|
||||
// eslint-disable-next-line no-useless-call
|
||||
return fn.call(null, ...escaped);
|
||||
};
|
||||
}) as any;
|
||||
}
|
||||
|
||||
// Freeze the object so it can't be changed
|
||||
|
||||
@@ -778,8 +778,8 @@ export const Routes = {
|
||||
},
|
||||
};
|
||||
|
||||
for (const [key, fn] of Object.entries(Routes)) {
|
||||
Routes[key] = (...args: (boolean | number | string | undefined)[]) => {
|
||||
for (const [key, fn] of Object.entries(Routes) as [keyof typeof Routes, (...args: any[]) => string][]) {
|
||||
Routes[key] = ((...args: any[]) => {
|
||||
const escaped = args.map((arg) => {
|
||||
if (arg) {
|
||||
// Skip already "safe" urls
|
||||
@@ -792,9 +792,10 @@ for (const [key, fn] of Object.entries(Routes)) {
|
||||
|
||||
return arg;
|
||||
});
|
||||
|
||||
// eslint-disable-next-line no-useless-call
|
||||
return fn.call(null, ...escaped);
|
||||
};
|
||||
}) as any;
|
||||
}
|
||||
|
||||
// Freeze the object so it can't be changed
|
||||
|
||||
@@ -1123,8 +1123,8 @@ export const Routes = {
|
||||
},
|
||||
};
|
||||
|
||||
for (const [key, fn] of Object.entries(Routes)) {
|
||||
Routes[key as keyof typeof Routes] = (...args: (boolean | number | string | undefined)[]) => {
|
||||
for (const [key, fn] of Object.entries(Routes) as [keyof typeof Routes, (...args: any[]) => string][]) {
|
||||
Routes[key] = ((...args: any[]) => {
|
||||
const escaped = args.map((arg) => {
|
||||
if (arg) {
|
||||
// Skip already "safe" urls
|
||||
@@ -1137,9 +1137,10 @@ for (const [key, fn] of Object.entries(Routes)) {
|
||||
|
||||
return arg;
|
||||
});
|
||||
|
||||
// eslint-disable-next-line no-useless-call
|
||||
return fn.call(null, ...escaped);
|
||||
};
|
||||
}) as any;
|
||||
}
|
||||
|
||||
// Freeze the object so it can't be changed
|
||||
@@ -1454,8 +1455,8 @@ export const CDNRoutes = {
|
||||
},
|
||||
};
|
||||
|
||||
for (const [key, fn] of Object.entries(CDNRoutes)) {
|
||||
CDNRoutes[key as keyof typeof CDNRoutes] = (...args: (boolean | number | string | undefined)[]) => {
|
||||
for (const [key, fn] of Object.entries(CDNRoutes) as [keyof typeof CDNRoutes, (...args: any[]) => string][]) {
|
||||
CDNRoutes[key] = ((...args: any[]) => {
|
||||
const escaped = args.map((arg) => {
|
||||
if (arg) {
|
||||
// Skip already "safe" urls
|
||||
@@ -1470,7 +1471,7 @@ for (const [key, fn] of Object.entries(CDNRoutes)) {
|
||||
});
|
||||
// eslint-disable-next-line no-useless-call
|
||||
return fn.call(null, ...escaped);
|
||||
};
|
||||
}) as any;
|
||||
}
|
||||
|
||||
// Freeze the object so it can't be changed
|
||||
|
||||
26
yarn.lock
26
yarn.lock
@@ -4383,7 +4383,7 @@ __metadata:
|
||||
ts-morph: "npm:^27.0.0"
|
||||
tsutils: "npm:^3.21.0"
|
||||
tsx: "npm:^4.20.3"
|
||||
typescript: "npm:^5.8.3"
|
||||
typescript: "npm:^6.0.0"
|
||||
typescript-eslint: "npm:^8.33.0"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
@@ -9640,7 +9640,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"typescript@npm:>=5":
|
||||
"typescript@npm:>=5, typescript@npm:^6.0.0":
|
||||
version: 6.0.2
|
||||
resolution: "typescript@npm:6.0.2"
|
||||
bin:
|
||||
@@ -9650,17 +9650,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"typescript@npm:^5.8.3":
|
||||
version: 5.9.3
|
||||
resolution: "typescript@npm:5.9.3"
|
||||
bin:
|
||||
tsc: bin/tsc
|
||||
tsserver: bin/tsserver
|
||||
checksum: 10c0/6bd7552ce39f97e711db5aa048f6f9995b53f1c52f7d8667c1abdc1700c68a76a308f579cd309ce6b53646deb4e9a1be7c813a93baaf0a28ccd536a30270e1c5
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"typescript@patch:typescript@npm%3A>=5#optional!builtin<compat/typescript>":
|
||||
"typescript@patch:typescript@npm%3A>=5#optional!builtin<compat/typescript>, typescript@patch:typescript@npm%3A^6.0.0#optional!builtin<compat/typescript>":
|
||||
version: 6.0.2
|
||||
resolution: "typescript@patch:typescript@npm%3A6.0.2#optional!builtin<compat/typescript>::version=6.0.2&hash=5786d5"
|
||||
bin:
|
||||
@@ -9670,16 +9660,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"typescript@patch:typescript@npm%3A^5.8.3#optional!builtin<compat/typescript>":
|
||||
version: 5.9.3
|
||||
resolution: "typescript@patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>::version=5.9.3&hash=5786d5"
|
||||
bin:
|
||||
tsc: bin/tsc
|
||||
tsserver: bin/tsserver
|
||||
checksum: 10c0/ad09fdf7a756814dce65bc60c1657b40d44451346858eea230e10f2e95a289d9183b6e32e5c11e95acc0ccc214b4f36289dcad4bf1886b0adb84d711d336a430
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"uglify-js@npm:^3.1.4":
|
||||
version: 3.19.3
|
||||
resolution: "uglify-js@npm:3.19.3"
|
||||
|
||||
Reference in New Issue
Block a user