@@ -350,7 +350,7 @@ export class Datacore extends Component {
350350 off(evt : string , callback : (... data : any ) => any ): void ;
351351 offref(ref : EventRef ): void ;
352352 on(evt : " update" , callback : (revision : number ) => any , context ? : any ): EventRef ;
353- // (undocumented)
353+ on( evt : " rename " , callback : ( newPath : string , oldPath : string ) => any , context ? : any ) : EventRef ;
354354 on(evt : " initialized" , callback : () => any , context ? : any ): EventRef ;
355355 // Warning: (ae-forgotten-export) The symbol "LocalStorageCache" needs to be exported by the entry point index.d.ts
356356 //
@@ -382,7 +382,7 @@ export class DatacoreApi {
382382 coerce: typeof Coerce ;
383383 // (undocumented)
384384 core: Datacore ;
385- evaluate(expression : string | Expression , variables ? : Record <string , Literal > | any , sourcePath ? : string ): Result < Literal , string > ;
385+ evaluate(expression : string | Expression , variables ? : Record <string , Literal > | any , sourcePath ? : string ): Literal ;
386386 executeJs(source : string , container : HTMLElement , component : Component | MarkdownPostProcessorContext , sourcePath : string ): MarkdownRenderChild ;
387387 executeJsx(source : string , container : HTMLElement , component : Component | MarkdownPostProcessorContext , sourcePath : string ): MarkdownRenderChild ;
388388 executeTs(source : string , container : HTMLElement , component : Component | MarkdownPostProcessorContext , sourcePath : string ): MarkdownRenderChild ;
@@ -398,7 +398,7 @@ export class DatacoreApi {
398398 get preact(): typeof preact_2 ;
399399 query(query : string | IndexQuery ): Indexable [];
400400 resolvePath(path : string | Link , sourcePath ? : string ): string ;
401- tryEvaluate(expression : string | Expression , variables ? : Record <string , Literal > | any , sourcePath ? : string ): Literal ;
401+ tryEvaluate(expression : string | Expression , variables ? : Record <string , Literal > | any , sourcePath ? : string ): Result < Literal , string > ;
402402 tryFullQuery(query : string | IndexQuery ): Result <SearchResult <Indexable >, string >;
403403 tryParseLink(linktext : string ): Result <Link , string >;
404404 tryParseQuery(query : string | IndexQuery ): Result <IndexQuery , string >;
@@ -426,7 +426,7 @@ export class DatacoreLocalApi {
426426 currentFile(): MarkdownPage ;
427427 currentPath(): string ;
428428 embed: any ;
429- evaluate(expression : string | Expression , variables ? : Record <string , Literal > | any , sourcePath ? : string ): Result < Literal , string > ;
429+ evaluate(expression : string | Expression , variables ? : Record <string , Literal > | any , sourcePath ? : string ): Literal ;
430430 fileLink(path : string ): Link ;
431431 fullquery(query : string | IndexQuery ): SearchResult <Indexable >;
432432 Group: typeof Group ;
@@ -458,7 +458,7 @@ export class DatacoreLocalApi {
458458 Table: typeof TableView ;
459459 // (undocumented)
460460 Textbox: typeof Textbox ;
461- tryEvaluate(expression : string | Expression , variables ? : Record <string , Literal > | any , sourcePath ? : string ): Literal ;
461+ tryEvaluate(expression : string | Expression , variables ? : Record <string , Literal > | any , sourcePath ? : string ): Result < Literal , string > ;
462462 tryFullQuery(query : string | IndexQuery ): Result <SearchResult <Indexable >, string >;
463463 tryParseLink(linktext : string ): Result <Link , string >;
464464 tryParseQuery(query : string | IndexQuery ): Result <IndexQuery , string >;
0 commit comments