FunctinDigith and focusTarget scrolling

This commit is contained in:
Yura Dupyn 2026-02-14 22:41:53 +01:00
parent 8e4dcb5de7
commit b0280b9d74
10 changed files with 378 additions and 91 deletions

View file

@ -1,4 +1,5 @@
import { FunctionName } from "src/lang/expr"
import { FunctionName } from "src/lang/expr";
import { DigithId } from "./scrowlStore";
export type Digith =
| Digith.Repl
@ -7,10 +8,12 @@ export type Digith =
export namespace Digith {
export type Repl = {
id: DigithId,
tag: "repl",
}
export type NewFunctionDraft = {
id: DigithId,
tag: "new-fn-draft",
raw_name: string,
raw_parameters: string,
@ -18,11 +21,11 @@ export namespace Digith {
}
export type Function = {
id: DigithId,
tag: "fn",
name: FunctionName,
raw_parameters: string,
raw_body: string,
is_loaded: boolean
}
}