From aa341453ad7e14bc124e8a9c0a4b50e9edbb45d7 Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 19 Jun 2024 14:29:14 +0800 Subject: [PATCH] fix: fix Style type (#5881) --- packages/g6/src/spec/element/edge.ts | 2 +- packages/g6/src/spec/element/node.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/g6/src/spec/element/edge.ts b/packages/g6/src/spec/element/edge.ts index 2f94573e70..45f7bf6fc2 100644 --- a/packages/g6/src/spec/element/edge.ts +++ b/packages/g6/src/spec/element/edge.ts @@ -51,5 +51,5 @@ export interface StaticEdgeOptions { } export interface EdgeStyle extends Partial { - [key: string]: any; + [key: string]: unknown; } diff --git a/packages/g6/src/spec/element/node.ts b/packages/g6/src/spec/element/node.ts index 273727a4dd..22d07be0e2 100644 --- a/packages/g6/src/spec/element/node.ts +++ b/packages/g6/src/spec/element/node.ts @@ -51,5 +51,5 @@ export interface StaticNodeOptions { } export interface NodeStyle extends Partial { - [key: string]: any; + [key: string]: unknown; }