mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-29 21:51:59 +02:00
Fix types
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import {HttpRequestAction, TemplateFunction} from '@yaakapp/api';
|
||||
import { TemplateFunction } from '@yaakapp/api';
|
||||
|
||||
export function migrateTemplateFunctionSelectOptions(f: TemplateFunction): TemplateFunction {
|
||||
const migratedArgs = f.args.map((a) => {
|
||||
@@ -16,10 +16,3 @@ export function migrateTemplateFunctionSelectOptions(f: TemplateFunction): Templ
|
||||
args: migratedArgs,
|
||||
};
|
||||
}
|
||||
|
||||
export function migrateHttpRequestActionKey(a: HttpRequestAction): HttpRequestAction {
|
||||
return {
|
||||
...a,
|
||||
name: a.name || (a as any).key,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user