@n1k1t/unit-generator
Version:
Coverage based unit tests AI generator
268 lines • 7.05 kB
TypeScript
import z from 'zod/v3';
declare const schemas: {
match: z.ZodObject<{
type: z.ZodLiteral<"match">;
data: z.ZodObject<{
line_number: z.ZodNumber;
absolute_offset: z.ZodNumber;
path: z.ZodObject<{
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
}, {
text: string;
}>;
lines: z.ZodObject<{
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
}, {
text: string;
}>;
submatches: z.ZodArray<z.ZodObject<{
match: z.ZodObject<{
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
}, {
text: string;
}>;
start: z.ZodNumber;
end: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
match: {
text: string;
};
start: number;
end: number;
}, {
match: {
text: string;
};
start: number;
end: number;
}>, "many">;
}, "strip", z.ZodTypeAny, {
path: {
text: string;
};
line_number: number;
absolute_offset: number;
lines: {
text: string;
};
submatches: {
match: {
text: string;
};
start: number;
end: number;
}[];
}, {
path: {
text: string;
};
line_number: number;
absolute_offset: number;
lines: {
text: string;
};
submatches: {
match: {
text: string;
};
start: number;
end: number;
}[];
}>;
}, "strip", z.ZodTypeAny, {
type: "match";
data: {
path: {
text: string;
};
line_number: number;
absolute_offset: number;
lines: {
text: string;
};
submatches: {
match: {
text: string;
};
start: number;
end: number;
}[];
};
}, {
type: "match";
data: {
path: {
text: string;
};
line_number: number;
absolute_offset: number;
lines: {
text: string;
};
submatches: {
match: {
text: string;
};
start: number;
end: number;
}[];
};
}>;
result: z.ZodUnion<[z.ZodObject<{
type: z.ZodLiteral<"match">;
data: z.ZodObject<{
line_number: z.ZodNumber;
absolute_offset: z.ZodNumber;
path: z.ZodObject<{
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
}, {
text: string;
}>;
lines: z.ZodObject<{
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
}, {
text: string;
}>;
submatches: z.ZodArray<z.ZodObject<{
match: z.ZodObject<{
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
}, {
text: string;
}>;
start: z.ZodNumber;
end: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
match: {
text: string;
};
start: number;
end: number;
}, {
match: {
text: string;
};
start: number;
end: number;
}>, "many">;
}, "strip", z.ZodTypeAny, {
path: {
text: string;
};
line_number: number;
absolute_offset: number;
lines: {
text: string;
};
submatches: {
match: {
text: string;
};
start: number;
end: number;
}[];
}, {
path: {
text: string;
};
line_number: number;
absolute_offset: number;
lines: {
text: string;
};
submatches: {
match: {
text: string;
};
start: number;
end: number;
}[];
}>;
}, "strip", z.ZodTypeAny, {
type: "match";
data: {
path: {
text: string;
};
line_number: number;
absolute_offset: number;
lines: {
text: string;
};
submatches: {
match: {
text: string;
};
start: number;
end: number;
}[];
};
}, {
type: "match";
data: {
path: {
text: string;
};
line_number: number;
absolute_offset: number;
lines: {
text: string;
};
submatches: {
match: {
text: string;
};
start: number;
end: number;
}[];
};
}>, z.ZodObject<{
type: z.ZodLiteral<"begin">;
}, "strip", z.ZodTypeAny, {
type: "begin";
}, {
type: "begin";
}>, z.ZodObject<{
type: z.ZodLiteral<"end">;
}, "strip", z.ZodTypeAny, {
type: "end";
}, {
type: "end";
}>, z.ZodObject<{
type: z.ZodLiteral<"summary">;
}, "strip", z.ZodTypeAny, {
type: "summary";
}, {
type: "summary";
}>]>;
};
export declare class Rg {
private provided?;
private argv0;
constructor(provided?: {
cwd?: string;
} | undefined);
exec(pattern: string, options?: {
include?: string[];
exclude?: string[];
limit?: number;
path?: string;
}): Promise<z.infer<typeof schemas.match>['data'][]>;
/** Installs and returns argv0 for `rg` */
private provide;
private which;
static build(provided?: Rg['provided']): Rg;
}
export {};
//# sourceMappingURL=rg.d.ts.map