choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
38 lines (37 loc) • 1.17 kB
TypeScript
import PromiseMerger from '../promise-merger';
import AttachmentFile from '../data-set/AttachmentFile';
import Field from '../data-set/Field';
export declare type AttachmentCache = {
count?: number | undefined;
attachments?: AttachmentFile[] | undefined;
};
declare type callbackArgs = [Field | undefined, boolean | undefined];
export declare class AttachmentStore {
batchCallback: (uuids: string[], args?: callbackArgs | undefined) => Promise<{
[key: string]: number | undefined;
}>;
merger: PromiseMerger<number | undefined, callbackArgs>;
fetchCountInBatch(uuid: string, field: Field | undefined, isPublic?: boolean): Promise<number | undefined>;
/**
* @deprecated
*/
get(_uuid: string): undefined;
/**
* @deprecated
*/
set(_uuid: string, _cache: AttachmentCache): void;
/**
* @deprecated
*/
getCount(_uuid: string): number | undefined;
/**
* @deprecated
*/
getAttachments(_uuid: string): AttachmentFile[] | undefined;
/**
* @deprecated
*/
clearCache(_codes?: string[]): void;
}
declare const _default: AttachmentStore;
export default _default;