Add validation helper
This commit is contained in:
5
src/validate.ts
Normal file
5
src/validate.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user