ducjs
Version:
The duc 2D CAD file format is a cornerstone of our advanced design system, conceived to cater to professionals seeking precision and efficiency in their design work.
10 lines (9 loc) • 776 B
TypeScript
import { LeaderBlockContent } from '../duc/leader-block-content';
import { LeaderTextBlockContent } from '../duc/leader-text-block-content';
export declare enum LeaderContentData {
NONE = 0,
LeaderTextBlockContent = 1,
LeaderBlockContent = 2
}
export declare function unionToLeaderContentData(type: LeaderContentData, accessor: (obj: LeaderBlockContent | LeaderTextBlockContent) => LeaderBlockContent | LeaderTextBlockContent | null): LeaderBlockContent | LeaderTextBlockContent | null;
export declare function unionListToLeaderContentData(type: LeaderContentData, accessor: (index: number, obj: LeaderBlockContent | LeaderTextBlockContent) => LeaderBlockContent | LeaderTextBlockContent | null, index: number): LeaderBlockContent | LeaderTextBlockContent | null;