refactor: trim secret contract type imports · openclaw/openclaw@0f5648b
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,7 +8,6 @@ import type {
|
8 | 8 | import { createTestPluginApi } from "openclaw/plugin-sdk/plugin-test-api"; |
9 | 9 | import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; |
10 | 10 | import type { OpenClawPluginApi } from "./api.js"; |
11 | | -import type { PendingPairingRequest } from "./notify.ts"; |
12 | 11 | |
13 | 12 | const pluginApiMocks = vi.hoisted(() => ({ |
14 | 13 | clearDeviceBootstrapTokens: vi.fn(async () => ({ removed: 2 })), |
@@ -713,7 +712,7 @@ describe("device-pair notify pending formatting", () => {
|
713 | 712 | it("includes role and scopes for pending requests", async () => { |
714 | 713 | const { formatPendingRequests } = |
715 | 714 | await vi.importActual<typeof import("./notify.ts")>("./notify.ts"); |
716 | | -const pending: PendingPairingRequest[] = [ |
| 715 | +const pending: Parameters<typeof formatPendingRequests>[0] = [ |
717 | 716 | { |
718 | 717 | requestId: "req-1", |
719 | 718 | deviceId: "device-1", |
@@ -737,7 +736,7 @@ describe("device-pair notify pending formatting", () => {
|
737 | 736 | it("falls back to roles list and no scopes when role/scopes are absent", async () => { |
738 | 737 | const { formatPendingRequests } = |
739 | 738 | await vi.importActual<typeof import("./notify.ts")>("./notify.ts"); |
740 | | -const pending: PendingPairingRequest[] = [ |
| 739 | +const pending: Parameters<typeof formatPendingRequests>[0] = [ |
741 | 740 | { |
742 | 741 | requestId: "req-2", |
743 | 742 | deviceId: "device-2", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。