test: type google setup registration coverage · openclaw/openclaw@b8c77c1
shakkernerd
·
2026-04-30
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +import type { CliBackendPlugin } from "openclaw/plugin-sdk/cli-backend"; |
| 2 | +import type { ProviderPlugin } from "openclaw/plugin-sdk/provider-model-shared"; |
1 | 3 | import { describe, expect, it } from "vitest"; |
2 | 4 | import setupEntry from "./setup-api.js"; |
3 | 5 | |
@@ -7,10 +9,10 @@ describe("google setup entry", () => {
|
7 | 9 | const cliBackendIds: string[] = []; |
8 | 10 | |
9 | 11 | setupEntry.register({ |
10 | | -registerProvider(provider) { |
| 12 | +registerProvider(provider: ProviderPlugin) { |
11 | 13 | providerIds.push(provider.id); |
12 | 14 | }, |
13 | | -registerCliBackend(backend) { |
| 15 | +registerCliBackend(backend: CliBackendPlugin) { |
14 | 16 | cliBackendIds.push(backend.id); |
15 | 17 | }, |
16 | 18 | } as never); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。