UNPKG

@datocms/cma-client

Version:
7 lines (6 loc) 491 B
import type { ItemWithOptionalIdAndMeta, NewBlockInRequest } from '../fieldTypes'; import type { ItemTypeDefinition } from './itemDefinition'; import type { SchemaRepository } from './schemaRepository'; type NoInfer<T> = [T][T extends any ? 0 : never]; export declare function duplicateBlockRecord<D extends ItemTypeDefinition = ItemTypeDefinition>(existingBlock: ItemWithOptionalIdAndMeta<NoInfer<D>>, schemaRepository: SchemaRepository): Promise<NewBlockInRequest<NoInfer<D>>>; export {};