@@ -44,6 +44,12 @@ export interface NotebookOutput {
4444 resourceFiles : RenderResourceFiles ;
4545}
4646
47+ export interface NotebookRenderResult {
48+ file : string ;
49+ supporting ?: string [ ] ;
50+ resourceFiles : RenderResourceFiles ;
51+ }
52+
4753// Metadata that can be passed when rendering/resolving a notebook
4854export interface NotebookMetadata {
4955 title : string ;
@@ -61,7 +67,7 @@ export interface NotebookTemplateMetadata extends NotebookMetadata {
6167
6268export interface NotebookContext {
6369 // Retrieves the notebook from the context.
64- get : ( nbPath : string ) => Notebook | undefined ;
70+ get : ( nbPath : string , outputFile ?: string ) => Notebook | undefined ;
6571 // Resolves the data on an executedFile into data that will
6672 // create a `renderType` output when rendered.
6773 resolve : (
@@ -89,7 +95,6 @@ export interface NotebookContext {
8995 renderType : RenderType ,
9096 renderServices : RenderServices ,
9197 notebookMetadata ?: NotebookMetadata ,
92- outputFile ?: string ,
9398 project ?: ProjectContext ,
9499 ) => Promise < NotebookPreview > ;
95100 // Previews are cleaned up when the notebook context is disposed, but
@@ -113,7 +118,6 @@ export interface NotebookContributor {
113118 token : string ,
114119 services : RenderServices ,
115120 notebookMetadata ?: NotebookMetadata ,
116- outputFile ?: string ,
117121 project ?: ProjectContext ,
118- ) : Promise < RenderedFile > ;
122+ ) : Promise < NotebookRenderResult > ;
119123}
0 commit comments