chore: generate
This commit is contained in:
parent
756c7c60bd
commit
d37166397c
1 changed files with 2 additions and 1 deletions
|
|
@ -73,7 +73,8 @@ export function expectOk<T>(response: JsonRpcResponse<T>) {
|
|||
|
||||
export function selectConfigOption(options: SessionConfigOption[] | null | undefined, id: string) {
|
||||
return options?.find(
|
||||
(option): option is Extract<SessionConfigOption, { type: "select" }> => option.id === id && option.type === "select",
|
||||
(option): option is Extract<SessionConfigOption, { type: "select" }> =>
|
||||
option.id === id && option.type === "select",
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue