mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-26 19:31:25 +01:00
Add @yaakapp/api everywhere
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
export function pluginHookImport(_ctx: any, contents: string) {
|
||||
import { YaakContext } from '@yaakapp/api';
|
||||
|
||||
export function pluginHookImport(_ctx: YaakContext, contents: string) {
|
||||
let parsed;
|
||||
try {
|
||||
parsed = JSON.parse(contents);
|
||||
@@ -24,6 +26,6 @@ export function pluginHookImport(_ctx: any, contents: string) {
|
||||
return { resources: parsed.resources }; // Should already be in the correct format
|
||||
}
|
||||
|
||||
export function isJSObject(obj: any) {
|
||||
function isJSObject(obj: any) {
|
||||
return Object.prototype.toString.call(obj) === '[object Object]';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user