chore(lint): enable unnecessary type parameter rule

This commit is contained in:
Peter Steinberger
2026-04-18 18:28:20 +01:00
parent 630f2bcabe
commit df525b90f2
94 changed files with 186 additions and 152 deletions

View File

@@ -558,7 +558,10 @@ export function registerFeishuBitableTools(api: OpenClawPluginApi) {
const getClient = (params: AccountAwareParams | undefined, defaultAccountId?: string) =>
createFeishuToolClient({ api, executeParams: params, defaultAccountId });
const registerBitableTool = <TParams extends AccountAwareParams>(params: {
const registerBitableTool = <
// oxlint-disable-next-line typescript/no-unnecessary-type-parameters -- Tool params bind each schema-specific executor to its registered tool.
TParams extends AccountAwareParams,
>(params: {
name: string;
label: string;
description: string;

View File

@@ -413,13 +413,13 @@ async function loadMonitorSingleAccount() {
return module.monitorSingleAccount;
}
export async function setupFeishuLifecycleHandler<T extends RuntimeEnv>(params: {
export async function setupFeishuLifecycleHandler(params: {
createEventDispatcherMock: {
mockReturnValue: (value: unknown) => unknown;
mockReturnValueOnce: (value: unknown) => unknown;
};
onRegister: (registered: Record<string, (data: unknown) => Promise<void>>) => void;
runtime: T;
runtime: RuntimeEnv;
cfg: ClawdbotConfig;
account: ResolvedFeishuAccount;
handlerKey: string;