knip fixes

This commit is contained in:
DrJKL
2026-01-11 02:49:54 -08:00
parent e64a569a3d
commit 27b261eb10
2 changed files with 1 additions and 10 deletions

View File

@@ -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
}

View File

@@ -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() {