@tokens-studio/graph-engine
Version:
An execution engine to handle Token Studios generators and resolvers
20 lines • 659 B
TypeScript
import { INodeDefinition, ToOutput } from '../../index.js';
import { Node } from '../../programmatic/node.js';
/**
* A node that returns the current time each tick in seconds since the Unix epoch.
* When the node is started, it will update the time every second.
*/
export default class NodeDefinition extends Node {
static title: string;
static type: string;
static description: string;
outputs: ToOutput<{
value: number;
}>;
_interval: NodeJS.Timeout | null;
constructor(props: INodeDefinition);
onStart: () => void;
onStop: () => void;
execute(): void | Promise<void>;
}
//# sourceMappingURL=time.d.ts.map