Didc skip duplicate binding instead of error

Is there an option to skip duplicate bindings instead of throwing an error when using didc?

A.did:

import service "b.did";

type Demo = record { "text" : text };
service : { greet : (text) -> (Demo) query }

B.did

type Demo = record { "text" : text };
service : { hello : () -> (Demo) query }

didc bind -t ts src/dev_backend/a.did
Error: duplicate binding for Demo

2 Likes

Currently not. Due to recursive definitions, it’s not easy to identify if two definitions are equivalent. If the two definitions are identical, can they just appear in one place?

1 Like

Not in my use case, which I admit is not the most common use case. However, I may ultimately find another way to meet my requirements, so it’s alright. If not, I’ll definitely let you know. Thanks for the feedback.

1 Like