@mark1russell7/vex 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -47,6 +47,7 @@ The types know the fields of the records and the ops of each domain. `root.from(
47
47
 
48
48
  - [`@mark1russell7/vex-domains`](https://www.npmjs.com/package/@mark1russell7/vex-domains): 2D vectors, colors, angles, numbers and booleans
49
49
  - [`@mark1russell7/vex-testkit`](https://www.npmjs.com/package/@mark1russell7/vex-testkit): property tests for the laws of your domains
50
+ - [`@mark1russell7/vex-compiler`](https://www.npmjs.com/package/@mark1russell7/vex-compiler): generated JavaScript for your programs, with the results of the interpreter
50
51
 
51
52
  ## License
52
53
 
package/build/index.d.ts CHANGED
@@ -22,7 +22,7 @@ type Optional$1<T> = None | Some<T>;
22
22
  */
23
23
  export type ErrorCode = "#REF!" | "#N/A" | "#VALUE!" | "#NAME?" | "#NUM!" | "#CALC!" | "#ARGS" | "#CYCLE!" | "#DEPTH!";
24
24
  /** The cause of an error, in more detail than the code. */
25
- export type ErrorKind = "unknown-key" | "not-a-pair" | "out-of-bounds" | "no-offset" | "no-grid" | "no-tree" | "no-table" | "no-graph" | "missing-field" | "empty" | "not-instance" | "kind-mismatch" | "unknown-op" | "unbound" | "not-finite" | "invalid-value" | "threw" | "undefined-result" | "args" | "cycle" | "depth" | "bad-expression";
25
+ export type ErrorKind = "unknown-key" | "not-a-pair" | "out-of-bounds" | "no-offset" | "no-grid" | "no-tree" | "no-table" | "no-graph" | "missing-field" | "empty" | "not-instance" | "kind-mismatch" | "unknown-op" | "unbound" | "not-finite" | "invalid-value" | "threw" | "undefined-result" | "args" | "cycle" | "depth" | "bad-expression" | "limit";
26
26
  /**
27
27
  * This function tells if an exception is the report of the engine that the call stack is full. V8 and JavaScriptCore
28
28
  * throw a `RangeError`. SpiderMonkey throws an `InternalError` ("too much recursion").
@@ -113,13 +113,16 @@ export declare const chainResult: <T, U>(r: Result<T>, f: (value: T) => Result<U
113
113
  * The expression IR of Vex. It is plain JSON data. Its first three kinds (`lit`, `ref`, `app`) have the same
114
114
  * shape as the expressions of `render`.
115
115
  */
116
- /** One move of an address. The moves of an address apply in order, from the focus of the evaluation. */
116
+ /**
117
+ * One move of an address. The moves of an address apply in order, from the focus of the evaluation. The key of `key`
118
+ * and the position of `index` can be an expression, which evaluates before the moves (NAV.COMPUTED).
119
+ */
117
120
  export type Move = {
118
121
  readonly t: "key";
119
- readonly key: string;
122
+ readonly key: string | Expr;
120
123
  } | {
121
124
  readonly t: "index";
122
- readonly i: number;
125
+ readonly i: number | Expr;
123
126
  } | {
124
127
  readonly t: "other";
125
128
  } | {
@@ -130,6 +133,16 @@ export type Move = {
130
133
  } | {
131
134
  readonly t: "parent";
132
135
  };
136
+ /** A move with a fixed key or position: a move with no expression. */
137
+ export type FixedMove = Exclude<Move, {
138
+ readonly t: "key" | "index";
139
+ }> | {
140
+ readonly t: "key";
141
+ readonly key: string;
142
+ } | {
143
+ readonly t: "index";
144
+ readonly i: number;
145
+ };
133
146
  /** An address: a list of moves. The empty list is the focus. */
134
147
  export type Addr = readonly Move[];
135
148
  /** An axis: the relation between a position and the targets that a body reads. */
@@ -195,11 +208,29 @@ export type Expr = {
195
208
  readonly axis: Axis;
196
209
  readonly body: Expr;
197
210
  readonly at?: Addr;
211
+ } | {
212
+ readonly tag: "fold";
213
+ readonly axis: Axis;
214
+ readonly init: Names;
215
+ readonly step: Names;
216
+ readonly result: Expr;
217
+ readonly at?: Addr;
218
+ } | {
219
+ readonly tag: "iterate";
220
+ readonly limit: number;
221
+ readonly init: Names;
222
+ readonly step: Names;
223
+ readonly until?: Expr;
224
+ readonly result: Expr;
198
225
  } | {
199
226
  readonly tag: "ext";
200
227
  readonly kind: string;
201
228
  readonly data: unknown;
202
229
  };
230
+ /** The names of a loop and an expression for each (LOOP.NAMES). */
231
+ export type Names = Readonly<Record<string, Expr>>;
232
+ /** The largest number of steps of `iterate` (ITERATE.LIMIT). */
233
+ export declare const MAX_ITERATIONS = 1e5;
203
234
  /** The tag of an expression kind. */
204
235
  export type ExprTag = Expr["tag"];
205
236
  /** An expression of one kind. */
@@ -225,20 +256,38 @@ export declare const rec: (fields: Readonly<Record<string, Expr>>) => ExprOf<"re
225
256
  * targets from the key of that address, not from the focus.
226
257
  */
227
258
  export declare function each(axis: Axis, body: Expr, at?: Addr): ExprOf<"each">;
259
+ /**
260
+ * This function makes a fold: a step at each target of `axis`, in order. `init` gives the names and their first
261
+ * values, and `step` gives the next values. `result` gives the value from the last values (LOOP.NAMES, FOLD.ORDER).
262
+ */
263
+ export declare function fold(axis: Axis, init: Names, step: Names, result: Expr, at?: Addr): ExprOf<"fold">;
264
+ /**
265
+ * This function makes an iteration: up to `limit` steps. `init` gives the names and their first values, and `step`
266
+ * gives the next values. A true `until` stops it, and `result` gives the value (ITERATE.LIMIT, ITERATE.UNTIL).
267
+ */
268
+ export declare function iterate(limit: number, init: Names, step: Names, result: Expr, until?: Expr): ExprOf<"iterate">;
228
269
  /** This function makes an expression of an extension kind. */
229
270
  export declare const ext: (kind: string, data: unknown) => ExprOf<"ext">;
230
- /** The move to an absolute key. */
231
- export declare const key: (k: string) => Move;
232
- /** The move to a position in the key order. */
233
- export declare const index: (i: number) => Move;
271
+ /** The move to an absolute key. The key can be an expression that gives a text. */
272
+ export declare function key(k: string): FixedMove;
273
+ export declare function key(k: string | Expr): Move;
274
+ /** The move to a position in the key order. The position can be an expression that gives a number. */
275
+ export declare function index(i: number): FixedMove;
276
+ export declare function index(i: number | Expr): Move;
277
+ /** This function gives the expression of a move with a computed key or position, or `undefined`. */
278
+ export declare function moveExpr(m: Move): Expr | undefined;
279
+ /** This function gives the expressions of the computed moves of an address, in the order of the moves. */
280
+ export declare const addrExprs: (at: Addr | undefined) => readonly Expr[];
281
+ /** This function tells if each move of an address is fixed. */
282
+ export declare const isFixedAddr: (at: Addr | undefined) => at is readonly FixedMove[];
234
283
  /** The move to the other key of a space with two keys. */
235
- export declare const other: Move;
284
+ export declare const other: FixedMove;
236
285
  /** The relative move in an array (one number) or a grid (two numbers). */
237
- export declare const offset: (...d: readonly number[]) => Move;
286
+ export declare const offset: (...d: readonly number[]) => FixedMove;
238
287
  /** The move back to the origin of the evaluation. */
239
- export declare const origin: Move;
288
+ export declare const origin: FixedMove;
240
289
  /** The move to the parent of the focus in a tree space. */
241
- export declare const parent: Move;
290
+ export declare const parent: FixedMove;
242
291
  /** The axes. */
243
292
  export declare const axes: {
244
293
  /** Each key of the space. */
@@ -276,13 +325,22 @@ export declare const axes: {
276
325
  /** The targets of `axis` where `test` gives `true`. */
277
326
  readonly where: (axis: Axis, test: Expr) => Axis;
278
327
  };
279
- /** This function tells if a value is a valid move. */
328
+ /** This function tells if a value is a valid move. The expression of a computed move must be valid too. */
280
329
  export declare function isMove(u: unknown): u is Move;
281
330
  /** This function tells if a value is a valid axis. It checks the tests of `where` too. */
282
331
  export declare function isAxis(u: unknown): u is Axis;
283
332
  /** This function tells if a value is a valid expression. It checks the whole tree. */
284
333
  export declare function isExpr(u: unknown): u is Expr;
285
- /** This function gives the child expressions of an expression, in the order of their child index. */
334
+ /**
335
+ * This function gives the reason that a value is not a valid expression, or `undefined` for a valid expression
336
+ * (EVAL.SHAPE). An expression from a newer version of Vex can have a tag that this version does not know. Unlike
337
+ * `isExpr`, it accepts a number that is not whole in a move or in a window, because it has a meaning at run time.
338
+ */
339
+ export declare function shapeError(u: unknown): string | undefined;
340
+ /**
341
+ * This function gives the child expressions of an expression, in the order of their child index. The expressions of
342
+ * the computed moves of an address come last. They evaluate at the position of their node, also for an axis.
343
+ */
286
344
  export declare function children(e: Expr): readonly Expr[];
287
345
  //#endregion
288
346
  //#region src/space.d.ts
@@ -296,6 +354,11 @@ export interface Space<K extends string = string, O = unknown> {
296
354
  readonly kind: SpaceKind;
297
355
  /** The keys, in their order. */
298
356
  readonly keys: readonly K[];
357
+ /**
358
+ * The record of each key, in the order of `keys` (SPACE.RECORDS). A compiler reads a record by its index with it.
359
+ * A space without it gives each record with `get` only.
360
+ */
361
+ readonly records?: readonly (O | undefined)[];
299
362
  /** This function tells if the space has the key `k`. */
300
363
  has(k: string): k is K;
301
364
  /** This function gives the record at the key `k`, or `undefined`. */
@@ -341,9 +404,14 @@ export interface Position {
341
404
  readonly focus: string;
342
405
  }
343
406
  /** This function applies one move to the focus. It gives the new focus, or a `#REF!` error. */
344
- export declare function applyMove(s: Space, at: Position, m: Move): Result<string>;
407
+ export declare function applyMove(s: Space, at: Position, m: FixedMove): Result<string>;
408
+ /**
409
+ * This function gives the fixed moves of an address. `values` has the value of the expression of each computed move,
410
+ * in order (NAV.COMPUTED). A key that is not a text, or a position that is not a number, gives `#VALUE!`.
411
+ */
412
+ export declare function fixAddr(addr: Addr, values: readonly unknown[], at: Position): Result<readonly FixedMove[]>;
345
413
  /** This function applies the moves of an address in order. It gives the key where the address points. */
346
- export declare function resolveAddr(s: Space, at: Position, addr: Addr | undefined): Result<string>;
414
+ export declare function resolveAddr(s: Space, at: Position, addr: readonly FixedMove[] | undefined): Result<string>;
347
415
  /**
348
416
  * This function gives the targets of a base axis at a focus. It does not handle `where`, because the
349
417
  * interpreter must evaluate the test.
@@ -361,6 +429,8 @@ export declare function axisTargets(s: Space, at: Position, a: Exclude<Axis, {
361
429
  export type Law = "commutative" | "associative" | "idempotent";
362
430
  /** The kind of a parameter. The interpreter checks the arguments of an op that declares its parameters. */
363
431
  export type ParamKind = "domain" | "number" | "boolean" | "string" | "any";
432
+ /** The kind of the result of an op: a kind of a parameter, or `domain:Name` for a value of the domain `Name`. */
433
+ export type ReturnKind = ParamKind | `domain:${string}`;
364
434
  /** The description of one op of a domain. */
365
435
  export interface OpSpec<D = never> {
366
436
  /**
@@ -376,7 +446,15 @@ export interface OpSpec<D = never> {
376
446
  readonly liftScalar?: boolean | readonly boolean[];
377
447
  /** The kinds of the parameters after the receiver. When set, the interpreter checks the arguments. */
378
448
  readonly params?: readonly ParamKind[];
449
+ /**
450
+ * The kind of the result: `domain` for a value of this domain, and `domain:Name` for a value of the domain `Name`. A
451
+ * compiler reads it to know the kinds of the values of a program (KIND.RETURNS). The interpreter does not check it,
452
+ * and the law checker of the test kit does.
453
+ */
454
+ readonly returns?: ReturnKind;
379
455
  }
456
+ /** A JavaScript type of primitive values that a domain can accept. */
457
+ export type PrimitiveKind = "number" | "string" | "boolean";
380
458
  /** The type of an op that lifts number arguments. Use it to type the ops of a domain under `isolatedDeclarations`. */
381
459
  export type LiftedOp<D> = OpSpec<D> & {
382
460
  readonly liftScalar: true;
@@ -396,6 +474,11 @@ export interface DomainSpec<Name extends string, D, Ops extends Readonly<Record<
396
474
  readonly name: Name;
397
475
  /** The runtime test for the values of the domain. It must not give false positives. */
398
476
  readonly is: (u: unknown) => u is D;
477
+ /**
478
+ * The JavaScript type of the values of the domain, if `is` accepts each value of that type and no other value
479
+ * (KIND.PRIMITIVE). A compiler then finds the op of such a value before a run.
480
+ */
481
+ readonly primitive?: PrimitiveKind;
399
482
  /** The ops of the domain, with their metadata. */
400
483
  readonly ops: Ops;
401
484
  /** With `"all"`, each method of a value is an op, also without an entry in `ops`. The default is `"declared"`. */
@@ -410,6 +493,11 @@ export interface DomainSpec<Name extends string, D, Ops extends Readonly<Record<
410
493
  readonly encode?: (d: D) => unknown;
411
494
  /** The value of a JSON form that `encode` made. */
412
495
  readonly decode?: (json: unknown) => D;
496
+ /**
497
+ * Some values of the domain. A compiler gives them to an op and to its copy in a module: the two must give the same
498
+ * results (KIND.DOMAIN).
499
+ */
500
+ readonly samples?: () => readonly D[];
413
501
  }
414
502
  /** A domain. Make one with `defineDomain`. */
415
503
  export interface Domain<Name extends string = string, D = unknown, Ops extends Readonly<Record<string, OpSpec<D>>> = Readonly<Record<string, OpSpec<D>>>> extends DomainSpec<Name, D, Ops> {
@@ -562,6 +650,12 @@ export declare function compile(expr: Expr, opts?: CompileOptions): Program;
562
650
  export declare function evaluate(expr: Expr, opts: EvalOptions): Result<unknown>;
563
651
  /** This function evaluates an expression and records a trace of each node. */
564
652
  export declare function explain(expr: Expr, opts: Omit<EvalOptions, "trace">): Trace;
653
+ /** This function tells if a segment of a path can name a field. A compiler uses the same rule as the interpreter. */
654
+ export declare const isFieldName: (seg: string) => boolean;
655
+ /** This function runs the `is` test of a domain. A test that throws counts as `false`. */
656
+ export declare function safeIs(d: AnyDomain, value: unknown): boolean;
657
+ /** This function tells if an argument has the kind of a parameter of an op of the domain `domain`. */
658
+ export declare function matchesKind(kind: ParamKind, value: unknown, domain: AnyDomain): boolean;
565
659
  /** This function gives a short name for the type of a value, for error messages. */
566
660
  export declare function describeType(u: unknown): string;
567
661
  /** This function gives the label of a node, for traces. */
@@ -590,7 +684,8 @@ export interface Dependency {
590
684
  }
591
685
  /**
592
686
  * This function gives the static reads of an expression. A host can use them to recompute a program only
593
- * when a field that it reads changes.
687
+ * when a field that it reads changes. A computed move reads a key that only a run knows. Its address keeps the
688
+ * expression, and the reads of that expression are in the list too (NAV.COMPUTED).
594
689
  */
595
690
  export declare function deps(e: Expr): readonly Dependency[];
596
691
  //#endregion
@@ -666,13 +761,16 @@ export declare function traversal<K extends string, T>(items: readonly Traversal
666
761
  //#region src/sheet.d.ts
667
762
  /** The extension kind of a cell reference. */
668
763
  export declare const CELL_KIND = "vex.cell";
669
- /** The data of a cell reference: the column, and the address from the focus. */
764
+ /**
765
+ * The data of a cell reference: the column, and the address from the focus. The data of an extension is not an
766
+ * expression, so the address has only fixed moves.
767
+ */
670
768
  export interface CellRef {
671
769
  readonly column: string;
672
- readonly at: Addr;
770
+ readonly at: readonly FixedMove[];
673
771
  }
674
772
  /** This function makes a cell reference: the column `column` at the address `at` from the focus. */
675
- export declare const cell: (column: string, at?: Addr) => Expr;
773
+ export declare const cell: (column: string, at?: readonly FixedMove[]) => Expr;
676
774
  /** The formulas of single cells: for each column, the formula of each key that has its own formula. */
677
775
  export type CellFormulas = ReadonlyMap<string, ReadonlyMap<string, Expr>>;
678
776
  /** A table of a run: its space, the formulas of its columns, and the formulas of its cells. */
@@ -689,7 +787,15 @@ export type SheetOptions = Omit<EvalOptions, "origin" | "trace" | "tables"> & {
689
787
  readonly name?: string;
690
788
  /** The other tables, by name (SHEET.TABLES). A cell reference reads the table of the space where it evaluates. */
691
789
  readonly tables?: ReadonlyMap<string, SheetTable>;
790
+ /**
791
+ * The compiler of the formulas of the columns (SHEET.COMPILE), for example `tiered` of `@mark1russell7/vex-compiler`.
792
+ * Without a compiler, the interpreter evaluates each formula. The compiled program must give the results of the
793
+ * interpreter.
794
+ */
795
+ readonly compile?: CompileFn;
692
796
  };
797
+ /** A compiler of the formulas of the columns of a run. */
798
+ export type CompileFn = (expr: Expr, options: CompileOptions) => Program;
693
799
  /**
694
800
  * One run of a sheet. It keeps the result of each cell that it evaluated. The space does not change, so a cell has
695
801
  * one result in a run.
@@ -720,6 +826,13 @@ export declare class SheetRun {
720
826
  cell(column: string, key: string, table?: string): Result<unknown>;
721
827
  /** This method evaluates one cell with a trace of the nodes of its program. The result is the result of the cell. */
722
828
  explain(column: string, key: string, table?: string): Trace;
829
+ /**
830
+ * This method evaluates each cell of the table `table`, or of the main table (SHEET.FILL). Each column comes after
831
+ * the columns that it reads, and the keys of a column come in the order of its reads from itself. Thus most reads
832
+ * find a finished cell. An evaluation that reads a cell that is not finished has no effect, and the search then
833
+ * evaluates its cell. A read of a cell gives the same result after a fill.
834
+ */
835
+ fill(table?: string): void;
723
836
  /**
724
837
  * This method evaluates the column `column` at each key before `key`, in key order. A recurrence over the keys,
725
838
  * for example a running total, then reads finished cells.
@@ -829,10 +942,16 @@ export interface ChainBase<Ctx extends ChainContext, T> {
829
942
  all(): Traversal<Ctx["keys"], T>;
830
943
  /** This method gives a chain whose value is a field of the record at the current address. */
831
944
  from<P extends keyof Ctx["record"] & string>(field: P): ChainOf<Ctx, NonNullable<Ctx["record"][P]>>;
832
- /** Navigation: later field references read at the key `k`. */
833
- to(k: Ctx["keys"]): ChainOf<Ctx, T>;
834
- /** Navigation: later field references read at the key with this position in the key order. */
835
- index(i: number): ChainOf<Ctx, T>;
945
+ /**
946
+ * Navigation: later field references read at the key `k`. A chain of a text gives the key, and it evaluates at the
947
+ * focus before the moves (NAV.COMPUTED).
948
+ */
949
+ to(k: Ctx["keys"] | ChainBase<Ctx, string>): ChainOf<Ctx, T>;
950
+ /**
951
+ * Navigation: later field references read at the key with this position in the key order. A chain of a number gives
952
+ * the position, and it evaluates at the focus before the moves (NAV.COMPUTED).
953
+ */
954
+ index(i: number | ChainBase<Ctx, number>): ChainOf<Ctx, T>;
836
955
  /** Navigation: later field references read at a relative position in an array or a grid. */
837
956
  offset(...d: readonly number[]): ChainOf<Ctx, T>;
838
957
  /** Navigation: later field references read at the origin again. */
@@ -853,6 +972,13 @@ export interface ChainBase<Ctx extends ChainContext, T> {
853
972
  call<N extends CallableFns<Ctx, T>>(name: N, ...args: CallArgs<Ctx, N>): ChainOf<Ctx, CallReturn<Ctx, N>>;
854
973
  /** This method evaluates each branch with the current value, and gives a record of the results. */
855
974
  fork<const B extends Readonly<Record<string, (c: ChainOf<Ctx, T>) => ChainBase<Ctx, unknown>>>>(branches: B): ChainOf<Ctx, { readonly [N in keyof B]: ValueOf<ReturnType<B[N]>>; }>;
975
+ /**
976
+ * This method makes up to `limit` steps (ITERATE.LIMIT). `init` gives the names and their first values, and `step`
977
+ * gives the next values. A true `until` stops the steps (ITERATE.UNTIL). `result` gives the value of the chain.
978
+ */
979
+ iterate<const I extends Readonly<Record<string, unknown>>, R>(limit: number, init: I, step: (vars: LoopVars<Ctx, I>) => NoInfer<LoopStep<Ctx, I>>, result: (vars: LoopVars<Ctx, I>) => ArgInput<R, Ctx, false>, opts?: {
980
+ readonly until?: (vars: LoopVars<Ctx, I>) => ArgInput<boolean, Ctx, false>;
981
+ }): ChainOf<Ctx, R>;
856
982
  /** This method binds names for the body. The body gets a variable token for each name. */
857
983
  with<const B extends Readonly<Record<string, unknown>>, U>(binds: B, body: (c: ChainOf<Ctx, T>, vars: { readonly [N in keyof B]: Arg<ArgValue<Ctx, B[N]>>; }) => ChainBase<Ctx, U>): ChainOf<Ctx, U>;
858
984
  /** The others axis: the body evaluates at each key except the focus. Its start value is the current value. */
@@ -912,10 +1038,21 @@ export type ArgValue<Ctx extends ChainContext, A> = A extends Arg<infer T> ? T :
912
1038
  readonly kind: "vex.chain";
913
1039
  } ? ValueOf<A> : A extends keyof Ctx["record"] & string ? NonNullable<Ctx["record"][A]> : A;
914
1040
  /** A chain whose value is a list: the result of an axis. */
1041
+ /** The type of a value of a name of a loop: a literal of `init` gives its primitive type. */
1042
+ type LoopValue<Ctx extends ChainContext, A> = ArgValue<Ctx, A> extends (infer T) ? (T extends number ? number : T extends string ? string : T extends boolean ? boolean : T) : never;
1043
+ /** The names of a loop of the builder: a chain of the value of each name of `init` (LOOP.NAMES). */
1044
+ export type LoopVars<Ctx extends ChainContext, I> = { readonly [N in keyof I]: ChainOf<Ctx, LoopValue<Ctx, I[N]>>; };
1045
+ /** The next values of a step of a loop: a value for some of the names of `init`. */
1046
+ export type LoopStep<Ctx extends ChainContext, I> = { readonly [N in keyof I]?: ArgInput<LoopValue<Ctx, I[N]>, Ctx, false>; };
915
1047
  export interface ListChain<Ctx extends ChainContext, U> {
916
1048
  readonly kind: "vex.list-chain";
917
1049
  /** The expression of the chain, as plain data. */
918
1050
  readonly program: Expr;
1051
+ /**
1052
+ * This method folds the items in the order of the axis (FOLD.ORDER). `init` gives the names and their first values.
1053
+ * `step` gives the next values from the names and the item, a chain at the target. `result` gives the value.
1054
+ */
1055
+ fold<const I extends Readonly<Record<string, unknown>>, R>(init: I, step: (vars: LoopVars<Ctx, I>, item: ChainOf<Ctx, U>) => NoInfer<LoopStep<Ctx, I>>, result: (vars: LoopVars<Ctx, I>) => ArgInput<R, Ctx, false>): ChainOf<Ctx, R>;
919
1056
  count(opts?: ListOpts): ChainOf<Ctx, number>;
920
1057
  sum(this: ListChain<Ctx, number>, opts?: ListOpts): ChainOf<Ctx, number>;
921
1058
  mean(this: ListChain<Ctx, number>, opts?: ListOpts): ChainOf<Ctx, number>;
@@ -977,11 +1114,12 @@ export interface Root<Ctx extends ChainContext> {
977
1114
  export interface SheetRoot<Ctx extends ChainContext, Cols> extends Root<Ctx> {
978
1115
  /**
979
1116
  * This method makes a cell reference: the column `column` at the key `at`, or at the address `at` from the focus.
980
- * Without `at`, it reads at the focus. The type is the type of a column before this one.
1117
+ * The address has only fixed moves. Without `at`, it reads at the focus. The type is the type of a column before
1118
+ * this one.
981
1119
  */
982
- cell<N extends keyof Cols & string>(column: N, at?: Ctx["keys"] | Addr): Arg<Cols[N]>;
1120
+ cell<N extends keyof Cols & string>(column: N, at?: Ctx["keys"] | readonly FixedMove[]): Arg<Cols[N]>;
983
1121
  /** This method makes a cell reference to any column, also this column or a later one. The caller gives the type. */
984
- cell<T>(column: string, at?: Ctx["keys"] | Addr): Arg<T>;
1122
+ cell<T>(column: string, at?: Ctx["keys"] | readonly FixedMove[]): Arg<T>;
985
1123
  }
986
1124
  /** One row of a sheet: the key and the result of each column. */
987
1125
  export interface SheetRow<K extends string, Cols> {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":["Optional","FamilyOptional"],"sources":["../../../node_modules/.pnpm/@mark1russell7+optional@https+++codeload.github.com+mark1russell7+optional+tar.gz+1c649_51d63135d3a4bb347c942166e3e4ba82/node_modules/@mark1russell7/optional/dist/index.d.ts","../src/errors.ts","../src/result.ts","../src/ir.ts","../src/space.ts","../src/domain.ts","../src/list.ts","../src/trace.ts","../src/evaluate.ts","../src/deps.ts","../src/json.ts","../src/traversal.ts","../src/sheet.ts","../src/builder.ts"],"ignoreList":[0],"mappings":";;;;;;KAKY;WACC;;;KAGD,KAAK;WACJ;WACA,OAAO;;;KAGRA,WAAS,KAAK,OAAO,KAAK;;;;;;;YCV1B;;YAGA;;;;;wBAqDI,gBAAgB;;qBAMnB,eAAgB,GAAG;;iBAGf;;WAEN,MAAM;;WAEN,MAAM;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA;;W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AEX,SAAS,SAAS,eAAe;;WAEjC,cAAc,SAAS,eAAe,SAAS,eAAe;;EAEvE,OAAO,gBAAgB,eAAe,GAAG,aAAa,QAAQ,IAAI,OAAO,KAAK;;EAE9E,GAAG,gBAAgB,eAAe,GAAG,aAAa,QAAQ,IAAI,SAAS,KAAK;;EAE5E,QAAQ,GAAG,aAAa,cAAc,gBAAgB;;EAEtD,kBAAkB,SAAS,aAAa;;;YAI9B,aAAa,MAAM,oBAAoB,gBAAgB,OAAO,KAAK;;iBAG9D,WAAW,UAAU,UAAU;;WAErC,MAAM;;WAEN,aAAa,SAAS,eAAe;;;iBAI/B,SAAS,qBAAqB,aAAa,UAAU,UAAU;;EAE9E,KAAK,kBAAkB,GAAG,GAAG,MAAM,GAAG,KAAK;aAAgB,SAAS;aAAc,MAAM;aAAY,QAAQ,MAAM;aAAa,KAAK;;;WAE3H,SAAS;;;;;;wBAuYJ,UAAU,qBAAqB,gBAC1C,SAAS,MACX,SAAS;EAAS,kBAAkB,UAAU,UAAU,OAAO,SAAS,WAAW,KAAK,SAAS,KAAK;;;YAe7F,cAAc,MAAM,YAAY"}
1
+ {"version":3,"file":"index.d.ts","names":["Optional","FamilyOptional"],"sources":["../../../node_modules/.pnpm/@mark1russell7+optional@https+++codeload.github.com+mark1russell7+optional+tar.gz+1c649_51d63135d3a4bb347c942166e3e4ba82/node_modules/@mark1russell7/optional/dist/index.d.ts","../src/errors.ts","../src/result.ts","../src/ir.ts","../src/space.ts","../src/domain.ts","../src/list.ts","../src/trace.ts","../src/evaluate.ts","../src/deps.ts","../src/json.ts","../src/traversal.ts","../src/sheet.ts","../src/builder.ts"],"ignoreList":[0],"mappings":";;;;;;KAKY;WACC;;;KAGD,KAAK;WACJ;WACA,OAAO;;;KAGRA,WAAS,KAAK,OAAO,KAAK;;;;;;;YCV1B;;YAGA;;;;;wBAuDI,gBAAgB;;qBAMnB,eAAgB,GAAG;;iBAGf;;WAEN,MAAM;;WAEN,MAAM;;WAEN;;WAEA;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