Skip to content

Commit

Permalink
support TextView
Browse files Browse the repository at this point in the history
  • Loading branch information
alanhe421 committed Apr 4, 2024
1 parent 70f969f commit 2154129
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lib/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export interface ScriptFilterItem {
}

export interface ScriptFilter {
skipknowledge?: boolean;
items: ScriptFilterItem[];
variables?: {
[index: string]: string;
Expand All @@ -83,3 +84,21 @@ export interface ScriptFilter {
*/
rerun?: number;
}

/**
* @see https://www.alfredapp.com/help/workflows/user-interface/text/json/
*/
export interface TextView {
variables: ScriptFilter['variables'];
rerun: number;
response: string;
footer: string;
behaviour: {
response: 'replace' | 'append' | 'prepend' | 'replacelast';
scroll: 'auto' | 'start' | 'end';
/**
* 缺省是clear
*/
inputfield: 'clear' | 'select';
}
}

0 comments on commit 2154129

Please sign in to comment.