graphology-types
Advanced tools
Comparing version 0.21.1 to 0.21.2
@@ -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; |
{ | ||
"name": "graphology-types", | ||
"version": "0.21.1", | ||
"version": "0.21.2", | ||
"description": "TypeScript declaration for graphology.", | ||
@@ -5,0 +5,0 @@ "main": "index.d.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57266
1835