Compare commits
1 Commits
feature/ty
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 5072970c91 |
5
src/types.ts
Normal file
5
src/types.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export interface Directive {
|
||||
text: string;
|
||||
timestamp?: Date;
|
||||
source: string;
|
||||
}
|
||||
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