Skip to content

Commit 0a370aa

Browse files
authored
fix(config): declare storeEmbeds in the typings (#3548)
1 parent 375e9cf commit 0a370aa

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@joint/core": patch
3+
---
4+
5+
config - fix the TypeScript types to declare `storeEmbeds`

‎packages/joint-core/test/ts/index.test.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import * as joint from '../../';
44

55
const graph = new joint.dia.Graph({ graphAttribute: true });
66

7+
// config
8+
joint.config.storeEmbeds = false;
9+
710
// graph events
811
graph.on('add', function(cell, collection, options) {
912
const isCell: AssertExtends<typeof cell, joint.dia.Cell> = true;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export namespace config {
88
var cellMergeStrategy: util.MergeCustomizer | null;
99
var cellDefaultsMergeStrategy: util.MergeCustomizer | null;
1010
var layerAttribute: string;
11+
var storeEmbeds: boolean;
1112
}
1213

1314
export namespace env {

0 commit comments

Comments
 (0)