mirror of
https://github.com/coder/coder.git
synced 2026-11-26 07:46:04 +08:00
Fix https://github.com/coder/coder/issues/16409 Since the provisioner timings action is not strongly typed, but it is typed as a generic string, and we are not using `noUncheckedIndexedAccess`, we can miss some of the actions returned from the API, causing type errors. To avoid that, I changed the code to be extra safe by adding `undefined` into the return type.