cloudhospital.react.sdk
Version:
### Build local package
28 lines (27 loc) • 1.83 kB
TypeScript
import { ArticlesApiApiV2ArticlesArticleIdContributorsGetRequest } from 'ch-api-client-typescript2/lib/api/articles-api';
import { ArticleContributorsModel } from 'ch-api-client-typescript2/lib/models/article-contributors-model';
import { SWRConfiguration } from 'swr';
import { SWRMutationConfiguration } from 'swr/mutation';
import { RestException } from '@models/exceptions';
export declare const getArticleContributorsSWR: (operationName: string | undefined, payload: ArticlesApiApiV2ArticlesArticleIdContributorsGetRequest, shouldFetch?: boolean, config?: SWRConfiguration<ArticleContributorsModel, RestException>) => {
data: ArticleContributorsModel | undefined;
error: RestException | undefined;
mutate: import("swr/_internal").KeyedMutator<ArticleContributorsModel>;
isValidating: boolean;
isLoading: boolean;
};
export declare const getArticleContributorsSWRMutation: (operationName?: string, config?: SWRMutationConfiguration<ArticleContributorsModel, RestException, undefined, string>) => {
data: ArticleContributorsModel | undefined;
error: RestException | undefined;
trigger: import("swr/mutation").TriggerWithArgs<ArticleContributorsModel, RestException, any, ArticlesApiApiV2ArticlesArticleIdContributorsGetRequest>;
reset: () => void;
isMutating: boolean;
};
export declare const getArticleContributorsSWRInfinite: (operationName: string | undefined, payload: ArticlesApiApiV2ArticlesArticleIdContributorsGetRequest, shouldFetch?: boolean) => {
data: ArticleContributorsModel | undefined;
isValidating: boolean;
isLoading: boolean;
error: RestException | undefined;
setSize: (size: number | ((_size: number) => number)) => Promise<ArticleContributorsModel[] | undefined>;
mutate: import("swr/_internal").KeyedMutator<ArticleContributorsModel[]>;
};