UNPKG

@uploadcare/file-uploader

Version:

Building blocks for Uploadcare products integration

11 lines 893 B
export function runSideEffects<T extends keyof import("../../types").ConfigType>({ key, setValue, getValue }: { key: T; setValue: <TSetValue extends keyof import("../../types").ConfigType>(key: TSetValue, value: import("../../types").ConfigType[TSetValue]) => void; getValue: <TGetValue extends keyof import("../../types").ConfigType>(key: TGetValue) => import("../../types").ConfigType[TGetValue]; }): void; export type ComputedPropertyDeclaration<TKey extends keyof import("../../types").ConfigType, TDeps extends Exclude<keyof import("../../types").ConfigType, TKey>[]> = { key: TKey; deps: TDeps; fn: (args: Record<TKey, import("../../types").ConfigType[TKey]> & { [K in TDeps[number]]: import("../../types").ConfigType[K]; }) => import("../../types").ConfigType[TKey] | Promise<import("../../types").ConfigType[TKey]>; }; //# sourceMappingURL=side-effects.d.ts.map