@@ -1005,6 +1005,7 @@ declare module 'jsEngine/api/Internal' {
10051005 */
10061006 executeStartupScripts ( ) : Promise < void > ;
10071007 private getFileWithExtension ;
1008+ private tryGetFileWithExtension ;
10081009 }
10091010}
10101011declare module 'jsEngine/api/LibAPI' {
@@ -1370,8 +1371,9 @@ declare module 'jsEngine/engine/JsExecution' {
13701371 executionSource : ExecutionSource . MarkdownCodeBlock ;
13711372 /**
13721373 * The file that the code block is in.
1374+ * Since rendered markdown does not necessarily have an associated file, this can be undefined.
13731375 */
1374- file : TFile ;
1376+ file ? : TFile ;
13751377 /**
13761378 * The metadata of the file.
13771379 */
@@ -1389,8 +1391,9 @@ declare module 'jsEngine/engine/JsExecution' {
13891391 executionSource : ExecutionSource . MarkdownCallingJSFile ;
13901392 /**
13911393 * The markdown file that the JS File is called from.
1394+ * Since rendered markdown does not necessarily have an associated file, this can be undefined.
13921395 */
1393- file : TFile ;
1396+ file ? : TFile ;
13941397 /**
13951398 * The metadata of the markdown file.
13961399 */
@@ -1403,9 +1406,10 @@ declare module 'jsEngine/engine/JsExecution' {
14031406 export interface MarkdownOtherExecutionContext {
14041407 executionSource : ExecutionSource . MarkdownOther ;
14051408 /**
1406- * The file that the code block is in.
1409+ * The file that the markdown is associated with.
1410+ * Since rendered markdown does not necessarily have an associated file, this can be undefined.
14071411 */
1408- file : TFile ;
1412+ file ? : TFile ;
14091413 /**
14101414 * The metadata of the file.
14111415 */
0 commit comments