@@ -158,11 +158,10 @@ declare module 'jsEngine/messages/MessageManager' {
158158}
159159declare module 'jsEngine/settings/StartupScriptModal' {
160160 import type JsEnginePlugin from 'jsEngine/main' ;
161- import StartupScripts from 'jsEngine/settings/StartupScripts.svelte' ;
162161 import { Modal } from 'obsidian' ;
163162 export class StartupScriptsModal extends Modal {
164- plugin : JsEnginePlugin ;
165- component ?: ReturnType < typeof StartupScripts > ;
163+ private readonly plugin ;
164+ private component ?;
166165 constructor ( plugin : JsEnginePlugin ) ;
167166 onOpen ( ) : void ;
168167 onClose ( ) : void ;
@@ -194,7 +193,8 @@ declare module 'jsEngine/api/markdown/MarkdownElementType' {
194193}
195194declare module 'jsEngine/api/markdown/MarkdownString' {
196195 import type { API } from 'jsEngine/api/API' ;
197- import type { App , Component } from 'obsidian' ;
196+ import type { Component } from 'obsidian' ;
197+ import { App } from 'obsidian' ;
198198 /**
199199 * A string that should be rendered as markdown by the plugin.
200200 */
@@ -689,6 +689,7 @@ declare module 'jsEngine/utils/Validators' {
689689 import { z } from 'zod' ;
690690 export function schemaForType < T > ( ) : < S extends z . ZodType < T , any , any > > ( arg : S ) => S ;
691691 export function validateAPIArgs < T > ( validator : z . ZodType < T > , args : T ) : void ;
692+ export function zodFunction < T extends Function > ( ) : z . ZodCustom < T , T > ;
692693 export class Validators {
693694 htmlElement : z . ZodType < HTMLElement , any , any > ;
694695 voidFunction : z . ZodType < ( ) => void , any , any > ;
@@ -1417,6 +1418,10 @@ declare module 'jsEngine/engine/JsExecution' {
14171418 }
14181419 export interface JSFileExecutionContext {
14191420 executionSource : ExecutionSource . JSFile ;
1421+ /**
1422+ * There is no associated markdown file.
1423+ */
1424+ file : undefined ;
14201425 /**
14211426 * The JS that is being executed.
14221427 */
0 commit comments