UNPKG

@tokens-studio/graph-engine

Version:

An execution engine to handle Token Studios generators and resolvers

30 lines 756 B
import { INodeDefinition, Node } from '../../programmatic/node.js'; import { ToInput, ToOutput } from '../../programmatic/index.js'; export declare enum Order { ASC = "asc", DESC = "desc" } export type NamedInput = { array: any[]; order?: Order.ASC | Order.DESC; sortBy?: string; }; export declare const defaults: { order: Order; }; export default class NodeDefinition<T> extends Node { static title: string; static type: string; inputs: ToInput<{ array: T[]; order: Order; sortBy: string; }>; outputs: ToOutput<{ value: T[]; }>; static description: string; constructor(props: INodeDefinition); execute(): void | Promise<void>; } //# sourceMappingURL=sort.d.ts.map