mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-09 01:20:09 +00:00
knip fixes
This commit is contained in:
@@ -17,7 +17,7 @@ export type GroupNodeInternalLink = [
|
||||
]
|
||||
|
||||
/** Serialized node data within a group node workflow, with group-specific index */
|
||||
export interface GroupNodeSerializedNode extends Partial<ISerialisedNode> {
|
||||
interface GroupNodeSerializedNode extends Partial<ISerialisedNode> {
|
||||
/** Position of this node within the group */
|
||||
index?: number
|
||||
}
|
||||
|
||||
@@ -5,11 +5,6 @@
|
||||
// This avoids TypeScript narrowing issues inside the conditional blocks
|
||||
const SymbolCtor: (description?: string) => symbol = Symbol
|
||||
|
||||
const SymbolWithPolyfills = Symbol as unknown as {
|
||||
dispose: symbol
|
||||
asyncDispose: symbol
|
||||
}
|
||||
|
||||
if (!('dispose' in Symbol)) {
|
||||
Object.defineProperty(Symbol, 'dispose', {
|
||||
value: SymbolCtor('Symbol.dispose'),
|
||||
@@ -25,10 +20,6 @@ if (!('asyncDispose' in Symbol)) {
|
||||
})
|
||||
}
|
||||
|
||||
// Export for use in other modules
|
||||
export const DisposeSymbol = SymbolWithPolyfills.dispose
|
||||
export const AsyncDisposeSymbol = SymbolWithPolyfills.asyncDispose
|
||||
|
||||
// API *************************************************
|
||||
// like rect but rounded corners
|
||||
export function loadPolyfills() {
|
||||
|
||||
Reference in New Issue
Block a user