Is there a way to type this function so it accepts...
# typescript
i
Is there a way to type this function so it accepts either
CustomResource
or
ComponentResource
https://gist.github.com/mattfysh/81a761119c84b7d026bf1ca1a9c2220c
I couldn't really see a way, so I just created a new method