@morph-mapper/source / UtilsApi
Interface: UtilsApi
Defined in: types/utils.ts:8
Exposed functions to plugin creators These functions are the result when using createUtilsApi
Properties
callRender
callRender: (
code) =>Promise<Result<any,PluginFrameworkError>>
Defined in: types/utils.ts:9
Parameters
code
string
Returns
Promise<Result<any, PluginFrameworkError>>
createCallRender
createCallRender: (
textContent) => (code) =>Promise<Result<any,PluginFrameworkError>>
Defined in: types/utils.ts:10
Parameters
textContent
string
Returns
(code) => Promise<Result<any, PluginFrameworkError>>
extractWithLLM
extractWithLLM: (
prompt,promptName,title?) =>Promise<Result<any,PluginFrameworkError>>
Defined in: types/utils.ts:14
Parameters
prompt
string
promptName
string
title?
string
Returns
Promise<Result<any, PluginFrameworkError>>
getFileType
getFileType: () =>
SchemaVariant
Defined in: types/utils.ts:13
Returns
SchemaVariant