Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

att can be an empty array #56

Open
hugomrdias opened this issue Sep 12, 2022 · 2 comments
Open

att can be an empty array #56

hugomrdias opened this issue Sep 12, 2022 · 2 comments

Comments

@hugomrdias
Copy link
Member

With the latest changes we are using type Tuple<T = unknown> = [T, ...T[]] for Capabilities which forces att to have at least one element but att can be an empty array.

What should we do here ?

@Gozala
Copy link
Collaborator

Gozala commented Dec 14, 2022

I think we can update types here to use C extends Capabilities | [] = Capabilities everywhere in here which I think would resolve this. On ucanto layer we may have to keep C and not allow empty case.

@hugomrdias
Copy link
Member Author

lets do this then at least here then ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants