mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +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 */
|
/** 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 */
|
/** Position of this node within the group */
|
||||||
index?: number
|
index?: number
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,11 +5,6 @@
|
|||||||
// This avoids TypeScript narrowing issues inside the conditional blocks
|
// This avoids TypeScript narrowing issues inside the conditional blocks
|
||||||
const SymbolCtor: (description?: string) => symbol = Symbol
|
const SymbolCtor: (description?: string) => symbol = Symbol
|
||||||
|
|
||||||
const SymbolWithPolyfills = Symbol as unknown as {
|
|
||||||
dispose: symbol
|
|
||||||
asyncDispose: symbol
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!('dispose' in Symbol)) {
|
if (!('dispose' in Symbol)) {
|
||||||
Object.defineProperty(Symbol, 'dispose', {
|
Object.defineProperty(Symbol, 'dispose', {
|
||||||
value: SymbolCtor('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 *************************************************
|
// API *************************************************
|
||||||
// like rect but rounded corners
|
// like rect but rounded corners
|
||||||
export function loadPolyfills() {
|
export function loadPolyfills() {
|
||||||
|
|||||||
Reference in New Issue
Block a user