File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -5,16 +5,27 @@ import {main} from "./index.js";
55import { input } from "./stdlib/generators/index.js" ;
66import { Mutator } from "./stdlib/mutable.js" ;
77
8- export type DefineState = DisplayState & { variables : Variable [ ] } ;
8+ export type DefineState = DisplayState & {
9+ /** the runtime variables associated with this cell */
10+ variables : Variable [ ]
11+ } ;
912
1013export type Definition = {
14+ /** the unique cell id; a positive integer */
1115 id : number ;
16+ /** the cell’s definition function */
1217 body : VariableDefinition ;
18+ /** the names of this cell’s inputs (unbound references), if any */
1319 inputs ?: string [ ] ;
20+ /** the names of this cell’s outputs (top-level declarations), if any */
1421 outputs ?: string [ ] ;
22+ /** the singular output name of this cell, if any; an alternative to outputs */
1523 output ?: string ;
24+ /** whether to display this cell’s singular output automatically */
1625 autodisplay ?: boolean ;
26+ /** whether this cell’s singular output is a view */
1727 autoview ?: boolean ;
28+ /** whether this cell’s singular output is a mutable */
1829 automutable ?: boolean ;
1930} ;
2031
Original file line number Diff line number Diff line change 11import { inspect , inspectError , getExpanded } from "./inspect.js" ;
22
33export type DisplayState = {
4+ /** the HTML element in which to render this cell’s display */
45 root : HTMLDivElement ;
6+ /** for inspected values, any expanded paths; see getExpanded */
57 expanded : ( number [ ] [ ] | undefined ) [ ] ;
68} ;
79
You can’t perform that action at this time.
0 commit comments