graphology-types
Advanced tools
+32
-21
@@ -220,2 +220,27 @@ /** | ||
| type AttributeUpdatePayload<ItemAttributes extends Attributes = Attributes> = | ||
| | { | ||
| type: 'set'; | ||
| key: string; | ||
| attributes: ItemAttributes; | ||
| name: string; | ||
| } | ||
| | { | ||
| type: 'remove'; | ||
| key: string; | ||
| attributes: ItemAttributes; | ||
| name: string; | ||
| } | ||
| | { | ||
| type: 'replace'; | ||
| key: string; | ||
| attributes: ItemAttributes; | ||
| } | ||
| | { | ||
| type: 'merge'; | ||
| key: string; | ||
| attributes: ItemAttributes; | ||
| data: ItemAttributes; | ||
| }; | ||
| interface GraphEvents< | ||
@@ -244,22 +269,7 @@ NodeAttributes extends Attributes = Attributes, | ||
| edgesCleared(): void; | ||
| attributesUpdated(payload: { | ||
| type: AttributeUpdateType; | ||
| attributes: GraphAttributes; | ||
| name: string; | ||
| data: GraphAttributes; | ||
| }): void; | ||
| nodeAttributesUpdated(payload: { | ||
| type: AttributeUpdateType; | ||
| key: string; | ||
| attributes: NodeAttributes; | ||
| name: string; | ||
| data: NodeAttributes; | ||
| }): void; | ||
| edgeAttributesUpdated(payload: { | ||
| type: AttributeUpdateType; | ||
| key: string; | ||
| attributes: EdgeAttributes; | ||
| name: string; | ||
| data: EdgeAttributes; | ||
| }): void; | ||
| attributesUpdated( | ||
| payload: Omit<AttributeUpdatePayload<GraphAttributes>, 'key'> | ||
| ): void; | ||
| nodeAttributesUpdated(payload: AttributeUpdatePayload<NodeAttributes>): void; | ||
| edgeAttributesUpdated(payload: AttributeUpdatePayload<EdgeAttributes>): void; | ||
| eachNodeAttributesUpdated(payload: {hints: UpdateHints}): void; | ||
@@ -1897,5 +1907,6 @@ eachEdgeAttributesUpdated(payload: {hints: UpdateHints}): void; | ||
| SerializedGraph, | ||
| AttributeUpdateType | ||
| AttributeUpdateType, | ||
| AttributeUpdatePayload | ||
| }; | ||
| export default AbstractGraph; |
+1
-1
| { | ||
| "name": "graphology-types", | ||
| "version": "0.21.1", | ||
| "version": "0.21.2", | ||
| "description": "TypeScript declaration for graphology.", | ||
@@ -5,0 +5,0 @@ "main": "index.d.ts", |
57266
0.5%1835
0.55%