Add @yaakapp/api everywhere

This commit is contained in:
Gregory Schier committed 2024-08-15 06:17:33 -07:00
1 parent bb3f948596
commit 54efb6ae4e
25 files changed
+258 -1984

No files matched your search

+2 -8
View File
@@ -1,10 +1,4 @@
import {
Environment,
Folder,
GrpcRequest,
HttpRequest,
Workspace,
} from '../../../src-web/lib/models';
import { Environment, Folder, GrpcRequest, HttpRequest, Workspace, YaakContext } from '@yaakapp/api';
import YAML from 'yaml';
type AtLeast<T, K extends keyof T> = Partial<T> & Pick<T, K>;
@@ -17,7 +11,7 @@ export interface ExportResources {
folders: AtLeast<Folder, 'name' | 'id' | 'model' | 'workspaceId'>[];
}
export function pluginHookImport(ctx: any, contents: string) {
export function pluginHookImport(ctx: YaakContext, contents: string) {
let parsed: any;
try {