Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphology-types

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphology-types - npm Package Compare versions

Comparing version 0.21.1 to 0.21.2

53

index.d.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc