Add validation helper

This commit is contained in:
2026-02-08 09:31:46 +00:00
parent f3fee2dcf1
commit 611b716572

5
src/validate.ts Normal file
View File

@@ -0,0 +1,5 @@
import type { Directive } from "./types";
export function validate(d: Directive): boolean {
return d.text.length > 0 && d.source.length > 0;
}