is there a reason `ComponentResourceOptions` which...
# typescript
b
is there a reason
ComponentResourceOptions
which extends
ResourceOptions
doesn't have
deleteBeforeReplace
?
CustomResourceOptions
(which also extends
ResourceOptions
) has it.
g
Ultimately, you don't apply deleteBeforeReplace on the component but the custom resources within a component. Given that there is no current way to map a single resource option to N number of custom resources, it is omitted.
There is a bit more commentary here as well as what's possible today.
b
Gotcha, thanks, makes sense. I would call it out in BIG BOLD LETTERS in the docs though, as a fair warning :)
g
It's a good point. There use to be a warning shown in the CLI if you ran into this situation, but it was removed for other reasons.