mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 03:57:26 +00:00
fix(ci): repair helper typing regressions
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
import type { z } from "zod";
|
||||
|
||||
type RequireOpenAllowFromFn = (params: {
|
||||
policy: unknown;
|
||||
allowFrom: unknown;
|
||||
policy?: string;
|
||||
allowFrom?: Array<string | number>;
|
||||
ctx: z.RefinementCtx;
|
||||
path: string[];
|
||||
path: Array<string | number>;
|
||||
message: string;
|
||||
}) => void;
|
||||
|
||||
export function requireChannelOpenAllowFrom(params: {
|
||||
channel: string;
|
||||
policy: unknown;
|
||||
allowFrom: unknown;
|
||||
policy?: string;
|
||||
allowFrom?: Array<string | number>;
|
||||
ctx: z.RefinementCtx;
|
||||
requireOpenAllowFrom: RequireOpenAllowFromFn;
|
||||
}) {
|
||||
|
||||
Reference in New Issue
Block a user