mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-05-28 18:39:23 +02:00
plugin:yaak-models|upsert PoC
This commit is contained in:
@@ -1 +1,8 @@
|
||||
import { invoke } from '@tauri-apps/api/core';
|
||||
import type { AnyModel } from './bindings/gen_models';
|
||||
|
||||
export * from './bindings/gen_models';
|
||||
|
||||
export async function upsertAnyModel(model: AnyModel): Promise<String> {
|
||||
return invoke<String>('plugin:yaak-models|upsert', { model });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user