chore: try to fix CI

This commit is contained in:
Vlad Frangu
2024-11-22 18:59:17 +02:00
parent e7f0caabaa
commit ace02e2b9b
4 changed files with 16 additions and 16 deletions

View File

@@ -1054,8 +1054,8 @@ export const Routes = {
};
for (const [key, fn] of Object.entries(Routes)) {
Routes[key] = (...args: string[]) => {
const escaped = args.map((arg) => encodeURIComponent(arg));
Routes[key as keyof typeof Routes] = (...args: (boolean | number | string | undefined)[]) => {
const escaped = args.map((arg) => arg && encodeURIComponent(arg));
// eslint-disable-next-line no-useless-call
return fn.call(null, ...escaped);
};
@@ -1362,8 +1362,8 @@ export const CDNRoutes = {
};
for (const [key, fn] of Object.entries(CDNRoutes)) {
CDNRoutes[key] = (...args: string[]) => {
const escaped = args.map((arg) => encodeURIComponent(arg));
CDNRoutes[key as keyof typeof CDNRoutes] = (...args: (number | string | undefined)[]) => {
const escaped = args.map((arg) => arg && encodeURIComponent(arg));
// eslint-disable-next-line no-useless-call
return fn.call(null, ...escaped);
};

View File

@@ -1063,8 +1063,8 @@ export const Routes = {
};
for (const [key, fn] of Object.entries(Routes)) {
Routes[key] = (...args: string[]) => {
const escaped = args.map((arg) => encodeURIComponent(arg));
Routes[key as keyof typeof Routes] = (...args: (boolean | number | string | undefined)[]) => {
const escaped = args.map((arg) => arg && encodeURIComponent(arg));
// eslint-disable-next-line no-useless-call
return fn.call(null, ...escaped);
};
@@ -1371,8 +1371,8 @@ export const CDNRoutes = {
};
for (const [key, fn] of Object.entries(CDNRoutes)) {
CDNRoutes[key] = (...args: string[]) => {
const escaped = args.map((arg) => encodeURIComponent(arg));
CDNRoutes[key as keyof typeof CDNRoutes] = (...args: (number | string | undefined)[]) => {
const escaped = args.map((arg) => arg && encodeURIComponent(arg));
// eslint-disable-next-line no-useless-call
return fn.call(null, ...escaped);
};

View File

@@ -1054,8 +1054,8 @@ export const Routes = {
};
for (const [key, fn] of Object.entries(Routes)) {
Routes[key] = (...args: string[]) => {
const escaped = args.map((arg) => encodeURIComponent(arg));
Routes[key as keyof typeof Routes] = (...args: (boolean | number | string | undefined)[]) => {
const escaped = args.map((arg) => arg && encodeURIComponent(arg));
// eslint-disable-next-line no-useless-call
return fn.call(null, ...escaped);
};
@@ -1362,8 +1362,8 @@ export const CDNRoutes = {
};
for (const [key, fn] of Object.entries(CDNRoutes)) {
CDNRoutes[key] = (...args: string[]) => {
const escaped = args.map((arg) => encodeURIComponent(arg));
CDNRoutes[key as keyof typeof CDNRoutes] = (...args: (number | string | undefined)[]) => {
const escaped = args.map((arg) => arg && encodeURIComponent(arg));
// eslint-disable-next-line no-useless-call
return fn.call(null, ...escaped);
};

View File

@@ -1063,8 +1063,8 @@ export const Routes = {
};
for (const [key, fn] of Object.entries(Routes)) {
Routes[key] = (...args: string[]) => {
const escaped = args.map((arg) => encodeURIComponent(arg));
Routes[key as keyof typeof Routes] = (...args: (boolean | number | string | undefined)[]) => {
const escaped = args.map((arg) => arg && encodeURIComponent(arg));
// eslint-disable-next-line no-useless-call
return fn.call(null, ...escaped);
};
@@ -1371,8 +1371,8 @@ export const CDNRoutes = {
};
for (const [key, fn] of Object.entries(CDNRoutes)) {
CDNRoutes[key] = (...args: string[]) => {
const escaped = args.map((arg) => encodeURIComponent(arg));
CDNRoutes[key as keyof typeof CDNRoutes] = (...args: (number | string | undefined)[]) => {
const escaped = args.map((arg) => arg && encodeURIComponent(arg));
// eslint-disable-next-line no-useless-call
return fn.call(null, ...escaped);
};