Skip to content

Conversation

@Ni55aN
Copy link
Member

@Ni55aN Ni55aN commented Dec 27, 2024

Description

DataflowEngine

Before

await dataflow.fetchInputs(node.id) // Record<string, any>
await dataflow.fetch(node.id) // Record<string, any>

After

class Node extends ClassicPreset.Node implements DataflowNode {
  data(inputs: { a?: number[], b?: boolean[] }): { a: string, b: string } {
  }
}

await dataflow.fetchInputs(node.id) // Record<string, any>
await dataflow.fetchInputs(node) // { a?: number[], b?: boolean[] }
await dataflow.fetchInputs<Node>(node.id) // { a?: number[], b?: boolean[] }

await dataflow.fetch(node.id) // Record<string, any>
await dataflow.fetch(node) // { a: string, b: string }
await dataflow.fetch<Node>(node.id) // { a: string, b: string }

Dataflow

Before

await dataflow.fetchInputs(node.id) // Record<string, any>
await dataflow.fetch(node.id) // Record<string, any>

After

await dataflow.fetchInputs(node.id) // Record<string, any>
await dataflow.fetchInputs<{ a: string[] }>(node.id) // { a?: string[] }

await dataflow.fetch(node.id) // Record<string, any>
await dataflow.fetch<{ a: string }>(node.id) // { a: string }

Related Issues

https://discord.com/channels/1081223198055604244/1088598665746190437/1298371135880298548

Checklist

Additional Notes

@sonarqubecloud
Copy link

@Ni55aN Ni55aN merged commit 881c16e into main Dec 27, 2024
5 checks passed
@rete-js
Copy link
Contributor

rete-js bot commented Dec 27, 2024

🎉 This PR is included in version 2.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@rete-js rete-js bot added the released label Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant