screepers / screeps-typescript-starter

Starter kit for TypeScript-based Screeps AI codes.
https://screepers.gitbook.io/screeps-typescript-starter/
The Unlicense
441 stars 318 forks source link

Indexing via Type #82

Closed MDLeide closed 6 years ago

MDLeide commented 6 years ago

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?

resir014 commented 6 years ago

@MDLeide This seems to be an issue related to https://github.com/screepers/typed-screeps. Could you re-create the issue there?

MDLeide commented 6 years ago

Sure can. Didn't realize the projects were independent.