mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 22:20:42 +00:00
chore(lint): enable unnecessary type parameter rule
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user