mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-23 22:25:05 +00:00
chore: drop unused exports flagged by knip
Amp-Thread-ID: https://ampcode.com/threads/T-019de014-4726-7527-a52a-766e2f2eaf22 Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
@@ -65,9 +65,7 @@ export type WidgetState<
|
||||
* `WidgetEntityId`. The view returned from `registerWidget` is the
|
||||
* un-augmented `WidgetState` because identity fields live in the entity id.
|
||||
*/
|
||||
export interface WidgetRegistration<
|
||||
TValue = unknown
|
||||
> extends WidgetState<TValue> {
|
||||
interface WidgetRegistration<TValue = unknown> extends WidgetState<TValue> {
|
||||
name: string
|
||||
nodeId: NodeId
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ export function asGraphId(id: UUID): GraphId {
|
||||
|
||||
export type NodeEntityId = Brand<string, 'NodeEntityId'>
|
||||
|
||||
export function graphNodePrefix(graphId: GraphId): string {
|
||||
function graphNodePrefix(graphId: GraphId): string {
|
||||
return `node:${graphId}:`
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ export function nodeEntityId(graphId: GraphId, nodeId: NodeId): NodeEntityId {
|
||||
|
||||
export type WidgetEntityId = Brand<string, 'WidgetEntityId'>
|
||||
|
||||
export function graphWidgetPrefix(graphId: GraphId): string {
|
||||
function graphWidgetPrefix(graphId: GraphId): string {
|
||||
return `widget:${graphId}:`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user