chore: generate
This commit is contained in:
parent
756c7c60bd
commit
d37166397c
@ -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…
Reference in New Issue
Block a user