refactor(linear): keep workspace API types inside channel

This commit is contained in:
chengyongru authored and chengyongru committed 2026-09-23 18:29:52 +08:00
1 parent c5f78bbd5c
commit 2dac0d330c
5 files changed
+38 -30

No files matched your search

+3 -3
View File
@@ -815,12 +815,12 @@ export async function runPairingAction(
return mutation<PairingPayload>(transport, `settings.pairing.${action}`, { code });
}
export async function startChannelConnect(
export async function startChannelConnect<T = ChannelConnectPayload>(
transport: WebUIMutationTransport,
channel: string,
params: Readonly<Record<string, string | boolean>> = {},
): Promise<ChannelConnectPayload> {
return mutation<ChannelConnectPayload>(
): Promise<T> {
return mutation<T>(
transport,
"settings.channel.connect.start",
{