Skip to content

Commit 4919c11

Browse files
committed
Change ResourcesHost.getByDynamicName to return any resource instead of all of our known resources
This helps with the "short circuit" type mappings
1 parent c4ee42b commit 4919c11

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/core/resources/resources.host.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ export class ResourcesHost {
6161
return resource;
6262
}
6363

64-
getByDynamicName(
65-
name: LooseResourceName,
66-
): EnhancedResource<ValueOf<ResourceMap>> {
64+
getByDynamicName(name: LooseResourceName): EnhancedResource<any> {
6765
return this.getByName(name as any);
6866
}
6967

0 commit comments

Comments
 (0)