When I try to build a project I get several of the following errors:
Build: Type 'T' cannot be used to index type 'FindTypes'.
from
type FilterFunction<T extends FindConstant> = (object: FindTypes[T]) => boolean;
It looks like it's trying to use the constant associated with the Type... but I'm not really sure. Any ideas?
When I try to build a project I get several of the following errors:
Build: Type 'T' cannot be used to index type 'FindTypes'.
fromtype FilterFunction<T extends FindConstant> = (object: FindTypes[T]) => boolean;
It looks like it's trying to use the constant associated with the Type... but I'm not really sure. Any ideas?