19 lines
365 B
TypeScript
19 lines
365 B
TypeScript
export interface Part {
|
|
type: 'text';
|
|
value: string;
|
|
reconstruct: () => string;
|
|
}
|
|
|
|
export interface Command {
|
|
type: 'add' | 'filter' | 'done';
|
|
description: string;
|
|
attributes: string[];
|
|
filters: string[];
|
|
project: string;
|
|
tags: string;
|
|
parts: Part[];
|
|
reconstruct: () => string;
|
|
}
|
|
|
|
export function parse(input: string): Command;
|