Use a generic to narrow the `type` field from `string` to a literal. Now you can do e.g. `adapter.type === 'control_layer_adapter'` and TS narrows the type.
reselect
lruMemoize
https://invoke-ai.github.io/InvokeAI/contributing/frontend/OVERVIEW/