mirror of
https://github.com/logto-io/logto.git
synced 2025-04-07 23:01:25 -05:00
chore: bump eslint-config and eslint-config-react 0.15.0 (#1521)
* chore: bump eslint-config 0.15.0 * chore: bump eslint-config-react 0.15.0 * style: no explicit any
This commit is contained in:
parent
3e76de0ac9
commit
434e97d5cf
38 changed files with 225 additions and 434 deletions
packages
connector-alipay-native
connector-alipay
connector-aliyun-dm
connector-aliyun-sms
connector-apple
connector-facebook
connector-github
connector-google
connector-sendgrid-mail
connector-smtp
connector-twilio-sms
connector-types
connector-wechat-native
connector-wechat
console
core
package.json
src
demo-app
integration-tests
phrases-ui
phrases
schemas
shared
ui
|
@ -37,7 +37,7 @@
|
|||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@shopify/jest-koa-mocks": "^5.0.0",
|
||||
"@silverhand/eslint-config": "^0.14.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.14.0",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/lodash.pick": "^4.4.6",
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@shopify/jest-koa-mocks": "^5.0.0",
|
||||
"@silverhand/eslint-config": "^0.14.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.14.0",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/lodash.pick": "^4.4.6",
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@silverhand/eslint-config": "^0.14.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.14.0",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/node": "^16.3.1",
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@silverhand/eslint-config": "^0.14.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.14.0",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/node": "^16.3.1",
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@silverhand/eslint-config": "^0.14.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.14.0",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/node": "^16.3.1",
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@silverhand/eslint-config": "^0.14.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.14.0",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/node": "^16.3.1",
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@silverhand/eslint-config": "^0.14.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.14.0",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/node": "^16.3.1",
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@silverhand/eslint-config": "^0.14.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.14.0",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/node": "^16.3.1",
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@silverhand/eslint-config": "^0.14.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.14.0",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/node": "^16.3.1",
|
||||
|
|
|
@ -22,7 +22,7 @@ export type Personalization = {
|
|||
subject?: string;
|
||||
headers?: Record<string, string>;
|
||||
substitutions?: Record<string, string>;
|
||||
dynamic_template_data?: Record<string, any>;
|
||||
dynamic_template_data?: Record<string, unknown>;
|
||||
custom_args?: Record<string, string>;
|
||||
sendAt?: number;
|
||||
};
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@silverhand/eslint-config": "^0.14.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.14.0",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/node": "^16.3.1",
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@silverhand/eslint-config": "^0.14.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.14.0",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/node": "^16.3.1",
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@shopify/jest-koa-mocks": "^5.0.0",
|
||||
"@silverhand/eslint-config": "^0.14.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/essentials": "^1.1.6",
|
||||
"@silverhand/ts-config": "^0.14.0",
|
||||
"@types/jest": "^27.4.1",
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@silverhand/eslint-config": "^0.14.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.14.0",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/node": "^16.3.1",
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@silverhand/eslint-config": "^0.14.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.14.0",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/node": "^16.3.1",
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
"@parcel/transformer-mdx": "2.6.2",
|
||||
"@parcel/transformer-sass": "2.6.2",
|
||||
"@parcel/transformer-svg-react": "2.6.2",
|
||||
"@silverhand/eslint-config": "^0.14.0",
|
||||
"@silverhand/eslint-config-react": "^0.14.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/eslint-config-react": "^0.15.0",
|
||||
"@silverhand/essentials": "^1.1.6",
|
||||
"@silverhand/ts-config": "^0.14.0",
|
||||
"@silverhand/ts-config-react": "^0.14.0",
|
||||
|
|
|
@ -75,7 +75,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@shopify/jest-koa-mocks": "^5.0.0",
|
||||
"@silverhand/eslint-config": "^0.14.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/jest-config": "^0.14.0",
|
||||
"@silverhand/ts-config": "^0.14.0",
|
||||
"@types/debug": "^4.1.7",
|
||||
|
|
|
@ -5,6 +5,7 @@ import detectLanguage from './detect-language';
|
|||
|
||||
describe('detectLanguage', () => {
|
||||
it('detectLanguage with request header', () => {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const ctx: ParameterizedContext<any, any, any> = createMockContext({
|
||||
headers: {
|
||||
'accept-language': 'en,en-US;q=0.9',
|
||||
|
@ -17,6 +18,7 @@ describe('detectLanguage', () => {
|
|||
});
|
||||
|
||||
it('return empty if non-language is detected', () => {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const ctx: ParameterizedContext<any, any, any> = createMockContext({
|
||||
headers: {
|
||||
'accept-language': '; q=0.9',
|
||||
|
|
2
packages/core/src/include.d/koa-body.d.ts
vendored
2
packages/core/src/include.d/koa-body.d.ts
vendored
|
@ -5,7 +5,7 @@ declare module 'koa-body' {
|
|||
declare function koaBody<
|
||||
StateT = Record<string, unknown>,
|
||||
ContextT = Record<string, unknown>,
|
||||
ResponseBodyT = any
|
||||
ResponseBodyT = unknown
|
||||
>(options?: IKoaBodyOptions): MiddlewareType<StateT, ContextT, ResponseBodyT>;
|
||||
|
||||
export = koaBody;
|
||||
|
|
26
packages/core/src/include.d/koa-router.d.ts
vendored
26
packages/core/src/include.d/koa-router.d.ts
vendored
|
@ -17,10 +17,10 @@ declare module 'koa-router' {
|
|||
// TypeScript Version: 2.3
|
||||
|
||||
/* =================== USAGE ===================
|
||||
|
||||
|
||||
import * as Router from "koa-router";
|
||||
var router = new Router();
|
||||
|
||||
|
||||
=============================================== */
|
||||
|
||||
import * as Koa from 'koa';
|
||||
|
@ -49,7 +49,7 @@ declare module 'koa-router' {
|
|||
strict?: boolean | undefined;
|
||||
}
|
||||
|
||||
export interface IRouterParamContext<StateT = any, CustomT = Record<string, unknown>> {
|
||||
export interface IRouterParamContext<StateT = unknown, CustomT = Record<string, unknown>> {
|
||||
/**
|
||||
* Url params
|
||||
*/
|
||||
|
@ -66,7 +66,7 @@ declare module 'koa-router' {
|
|||
}
|
||||
|
||||
export type RouterContext<
|
||||
StateT = any,
|
||||
StateT = unknown,
|
||||
CustomT = Record<string, unknown>
|
||||
> = Koa.ParameterizedContext<StateT, CustomT & IRouterParamContext<StateT, CustomT>>;
|
||||
|
||||
|
@ -74,16 +74,16 @@ declare module 'koa-router' {
|
|||
// But it's deprecated - please use `RouterContext` instead
|
||||
export interface IRouterContext extends RouterContext {}
|
||||
|
||||
export type IMiddleware<StateT = any, CustomT = Record<string, unknown>> = Koa.Middleware<
|
||||
export type IMiddleware<StateT = unknown, CustomT = Record<string, unknown>> = Koa.Middleware<
|
||||
StateT,
|
||||
CustomT & IRouterParamContext<StateT, CustomT>
|
||||
>;
|
||||
|
||||
export type IParamMiddleware<STateT = any, CustomT = Record<string, unknown>> = (
|
||||
export type IParamMiddleware<STateT = unknown, CustomT = Record<string, unknown>> = (
|
||||
param: string,
|
||||
ctx: RouterContext<STateT, CustomT>,
|
||||
next: () => Promise<any>
|
||||
) => any;
|
||||
next: () => Promise<unknown>
|
||||
) => unknown;
|
||||
|
||||
export interface IRouterAllowedMethodsOptions {
|
||||
/**
|
||||
|
@ -93,11 +93,11 @@ declare module 'koa-router' {
|
|||
/**
|
||||
* Throw the returned value in place of the default NotImplemented error
|
||||
*/
|
||||
notImplemented?: (() => any) | undefined;
|
||||
notImplemented?: (() => unknown) | undefined;
|
||||
/**
|
||||
* Throw the returned value in place of the default MethodNotAllowed error
|
||||
*/
|
||||
methodNotAllowed?: (() => any) | undefined;
|
||||
methodNotAllowed?: (() => unknown) | undefined;
|
||||
}
|
||||
|
||||
export interface ILayerOptions {
|
||||
|
@ -182,7 +182,7 @@ declare module 'koa-router' {
|
|||
}
|
||||
}
|
||||
|
||||
declare class Router<StateT = any, CustomT = Record<string, unknown>> {
|
||||
declare class Router<StateT = unknown, CustomT = Record<string, unknown>> {
|
||||
params: Record<string, unknown>;
|
||||
stack: Router.Layer[];
|
||||
|
||||
|
@ -699,8 +699,8 @@ declare module 'koa-router' {
|
|||
* // => "/users/3?limit=1"
|
||||
*
|
||||
*/
|
||||
url(name: string, params: any, options?: Router.IUrlOptionsQuery): string;
|
||||
url(name: string, params: any, options?: Router.IUrlOptionsQuery): Error;
|
||||
url(name: string, params: unknown, options?: Router.IUrlOptionsQuery): string;
|
||||
url(name: string, params: unknown, options?: Router.IUrlOptionsQuery): Error;
|
||||
|
||||
/**
|
||||
* Match given `path` and return corresponding routes.
|
||||
|
|
4
packages/core/src/include.d/koa.d.ts
vendored
4
packages/core/src/include.d/koa.d.ts
vendored
|
@ -7,12 +7,12 @@ declare module 'koa' {
|
|||
export type MiddlewareType<
|
||||
StateT = DefaultState,
|
||||
ContextT = DefaultContext,
|
||||
ResponseBodyT = any,
|
||||
ResponseBodyT = unknown,
|
||||
NextT = void
|
||||
> = KoaMiddleware<ParameterizedContext<StateT, ContextT, ResponseBodyT>, NextT>;
|
||||
|
||||
interface Request extends BaseRequest {
|
||||
body?: any;
|
||||
body?: unknown;
|
||||
files?: Files;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -120,8 +120,9 @@ describe('connector route', () => {
|
|||
address: string,
|
||||
type: keyof EmailMessageTypes,
|
||||
_payload: EmailMessageTypes[typeof type]
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
||||
): Promise<any> => {},
|
||||
): Promise<string> => {
|
||||
return '';
|
||||
},
|
||||
};
|
||||
getConnectorInstancesPlaceHolder.mockResolvedValueOnce([mockedSmsConnectorInstance]);
|
||||
const sendMessageSpy = jest.spyOn(mockedSmsConnectorInstance, 'sendMessage');
|
||||
|
@ -150,8 +151,9 @@ describe('connector route', () => {
|
|||
address: string,
|
||||
type: keyof EmailMessageTypes,
|
||||
_payload: EmailMessageTypes[typeof type]
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
||||
): Promise<any> => {},
|
||||
): Promise<string> => {
|
||||
return '';
|
||||
},
|
||||
};
|
||||
getConnectorInstancesPlaceHolder.mockResolvedValueOnce([mockedEmailConnector]);
|
||||
const sendMessageSpy = jest.spyOn(mockedEmailConnector, 'sendMessage');
|
||||
|
|
|
@ -20,7 +20,10 @@ jest.mock('@/connectors', () => ({
|
|||
|
||||
const signInExperienceRequester = createRequester({ authedRoutes: signInExperiencesRoutes });
|
||||
|
||||
const expectPatchResponseStatus = async (signInExperience: any, status: number) => {
|
||||
const expectPatchResponseStatus = async (
|
||||
signInExperience: Record<string, unknown>,
|
||||
status: number
|
||||
) => {
|
||||
const response = await signInExperienceRequester.patch('/sign-in-exp').send(signInExperience);
|
||||
expect(response.status).toEqual(status);
|
||||
};
|
||||
|
|
|
@ -20,7 +20,10 @@ jest.mock('@/connectors', () => ({
|
|||
|
||||
const signInExperienceRequester = createRequester({ authedRoutes: signInExperiencesRoutes });
|
||||
|
||||
const expectPatchResponseStatus = async (signInExperience: any, status: number) => {
|
||||
const expectPatchResponseStatus = async (
|
||||
signInExperience: Record<string, unknown>,
|
||||
status: number
|
||||
) => {
|
||||
const response = await signInExperienceRequester.patch('/sign-in-exp').send(signInExperience);
|
||||
expect(response.status).toEqual(status);
|
||||
};
|
||||
|
|
|
@ -37,7 +37,10 @@ jest.mock('@/queries/sign-in-experience', () => ({
|
|||
|
||||
const signInExperienceRequester = createRequester({ authedRoutes: signInExperiencesRoutes });
|
||||
|
||||
const expectPatchResponseStatus = async (signInExperience: any, status: number) => {
|
||||
const expectPatchResponseStatus = async (
|
||||
signInExperience: Record<string, unknown>,
|
||||
status: number
|
||||
) => {
|
||||
const response = await signInExperienceRequester.patch('/sign-in-exp').send(signInExperience);
|
||||
expect(response.status).toEqual(status);
|
||||
};
|
||||
|
|
|
@ -15,7 +15,7 @@ jest.mock('js-yaml', () => ({
|
|||
}));
|
||||
|
||||
export const createSwaggerRequest = (
|
||||
allRouters: Array<Router<unknown, any>>,
|
||||
allRouters: Router[],
|
||||
swaggerRouter: AnonymousRouter = new Router()
|
||||
) => {
|
||||
swaggerRoutes(swaggerRouter, allRouters);
|
||||
|
|
|
@ -115,6 +115,8 @@ const buildOperation = (
|
|||
};
|
||||
};
|
||||
|
||||
// Keep using `any` to accept various custom context types.
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
export default function swaggerRoutes<T extends AnonymousRouter, R extends Router<unknown, any>>(
|
||||
router: T,
|
||||
allRouters: R[]
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
"@logto/shared": "^1.0.0-alpha.3",
|
||||
"@parcel/core": "2.6.2",
|
||||
"@parcel/transformer-sass": "2.6.2",
|
||||
"@silverhand/eslint-config": "^0.14.0",
|
||||
"@silverhand/eslint-config-react": "^0.14.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/eslint-config-react": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.14.0",
|
||||
"@silverhand/ts-config-react": "^0.14.0",
|
||||
"@types/react": "^17.0.14",
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
"@jest/types": "^27.5.1",
|
||||
"@logto/js": "^0.2.0",
|
||||
"@peculiar/webcrypto": "^1.3.3",
|
||||
"@silverhand/eslint-config": "^0.14.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/essentials": "^1.1.7",
|
||||
"@silverhand/jest-config": "^0.14.0",
|
||||
"@silverhand/ts-config": "^0.14.0",
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
"@silverhand/essentials": "^1.1.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@silverhand/eslint-config": "^0.14.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.14.0",
|
||||
"eslint": "^8.10.0",
|
||||
"lint-staged": "^13.0.0",
|
||||
|
|
|
@ -3,7 +3,7 @@ export type Resource = Record<Language, ResourceLanguage>;
|
|||
|
||||
export type ResourceLanguage = Record<string, ResourceKey>;
|
||||
|
||||
export type ResourceKey = string | Record<string, any>;
|
||||
export type ResourceKey = string | Record<string, unknown>;
|
||||
|
||||
export enum Language {
|
||||
English = 'en',
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
"@silverhand/essentials": "^1.1.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@silverhand/eslint-config": "^0.14.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.14.0",
|
||||
"eslint": "^8.10.0",
|
||||
"lint-staged": "^13.0.0",
|
||||
|
|
|
@ -7,7 +7,7 @@ export interface ResourceLanguage {
|
|||
[namespace: string]: ResourceKey;
|
||||
}
|
||||
|
||||
export type ResourceKey = string | { [key: string]: any };
|
||||
export type ResourceKey = string | { [key: string]: unknown };
|
||||
|
||||
export enum Language {
|
||||
English = 'en',
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
"node": "^16.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@silverhand/eslint-config": "^0.14.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/essentials": "^1.1.6",
|
||||
"@silverhand/ts-config": "^0.14.0",
|
||||
"@types/lodash.uniq": "^4.5.6",
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
"node": "^16.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@silverhand/eslint-config": "^0.14.0",
|
||||
"@silverhand/eslint-config-react": "^0.14.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/eslint-config-react": "^0.15.0",
|
||||
"@silverhand/essentials": "^1.1.6",
|
||||
"@silverhand/ts-config": "^0.14.0",
|
||||
"@silverhand/ts-config-react": "^0.14.0",
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
"@parcel/transformer-sass": "2.6.2",
|
||||
"@parcel/transformer-svg-react": "2.6.2",
|
||||
"@peculiar/webcrypto": "^1.3.3",
|
||||
"@silverhand/eslint-config": "^0.14.0",
|
||||
"@silverhand/eslint-config-react": "^0.14.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/eslint-config-react": "^0.15.0",
|
||||
"@silverhand/essentials": "^1.1.7",
|
||||
"@silverhand/jest-config": "^0.14.0",
|
||||
"@silverhand/ts-config": "^0.14.0",
|
||||
|
|
|
@ -6,7 +6,7 @@ import { useTranslation } from 'react-i18next';
|
|||
|
||||
import { PageContext } from '@/hooks/use-page-context';
|
||||
|
||||
type UseApi<T extends any[], U> = {
|
||||
type UseApi<T extends unknown[], U> = {
|
||||
result?: U;
|
||||
error: RequestErrorBody | undefined;
|
||||
run: (...args: T) => Promise<U | undefined>;
|
||||
|
@ -19,7 +19,7 @@ export type ErrorHandlers = {
|
|||
callback?: (error: RequestErrorBody) => void; // Callback method
|
||||
};
|
||||
|
||||
function useApi<Args extends any[], Response>(
|
||||
function useApi<Args extends unknown[], Response>(
|
||||
api: (...args: Args) => Promise<Response>,
|
||||
errorHandlers?: ErrorHandlers
|
||||
): UseApi<Args, Response> {
|
||||
|
|
532
pnpm-lock.yaml
generated
532
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue