Compare commits
2 Commits
main
...
feature/ty
| Author | SHA1 | Date | |
|---|---|---|---|
| 611b716572 | |||
| f3fee2dcf1 |
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