Closed ashe0047 closed 4 months ago
Hello, I am on v6.0.1 but im getting the error UnknownType: IndexedAccessType error when using enum to index type object. Below is the code:
export enum TestEnum { Test = "test", } export type TestFetchParams = { [TestEnum.Test]: [config: Config]; }; function(params: TestFetchParams[TestEnum]){}
Error:
Generate routes error. GenerateMetadataError: Unknown type: IndexedAccessType This was caused by 'params: TestFetchParams[TestEnum]'
Duplicate with #1375
Hello, I am on v6.0.1 but im getting the error UnknownType: IndexedAccessType error when using enum to index type object. Below is the code:
Error: