trigger.dev
Version:
A Command-Line Interface for Trigger.dev projects
12 lines (11 loc) • 461 B
TypeScript
export type DiscoverySpec = {
filePatterns: string[];
contentPattern?: string;
matchBehavior: "show-if-found" | "show-if-not-found";
};
/**
* Evaluates a discovery spec against the local filesystem.
* Returns `true` if the notification should be shown, `false` otherwise.
* Fails closed: any error returns `false` (suppress notification).
*/
export declare function evaluateDiscovery(spec: DiscoverySpec, projectRoot: string): Promise<boolean>;