Effect CommunityEC
Effect Community2y ago
2 replies
SilentEcho

Schema class type-checking issue with imported class

Is there a reason a Schema class that is exported from a lib would no longer be type-checked as a Schema<A, I, R>? I have a Vector2 class that extends from Schema.class in a package in a monorepo but I can't import that and use it in the main project as part of a Schema union without getting Argument of type 'typeof Vector2' is not assignable to parameter of type 'Any'.
Was this page helpful?