Skip to content

Commit 6f54b33

Browse files
kumilingusclaude
andcommitted
types(joint-core): extract IgnoreEmptyAttributesCallback type alias
Name the predicate signature for `Cell.ExportOptions.ignoreEmptyAttributes` so consumers can reuse it. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d138a39 commit 6f54b33

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/joint-core/types/dia.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,9 +612,11 @@ export namespace Cell {
612612
mergeArrays?: boolean;
613613
}
614614

615+
type IgnoreEmptyAttributesCallback = (key: string, path: string[]) => boolean;
616+
615617
interface ExportOptions {
616618
ignoreDefaults?: boolean | string[];
617-
ignoreEmptyAttributes?: boolean | ((key: string, path: string[]) => boolean);
619+
ignoreEmptyAttributes?: boolean | IgnoreEmptyAttributesCallback;
618620
}
619621

620622
type UnsetCallback<V> = (

0 commit comments

Comments
 (0)