mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-03 07:25:02 -05:00
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.