Add line-specific eslint-disable-next-line comments for SDK type casts and union type issues, rather than file-level disables. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
16 lines
406 B
TypeScript
16 lines
406 B
TypeScript
import type { PluginRuntime } from "openclaw/plugin-sdk";
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
|
|
let runtime: PluginRuntime | null = null;
|
|
|
|
export function setFeishuRuntime(next: PluginRuntime) {
|
|
runtime = next;
|
|
}
|
|
|
|
export function getFeishuRuntime(): PluginRuntime {
|
|
if (!runtime) {
|
|
throw new Error("Feishu runtime not initialized");
|
|
}
|
|
return runtime;
|
|
}
|