summaryrefslogtreecommitdiff
path: root/apps/web
diff options
context:
space:
mode:
authorJosh Kingsley <josh@joshkingsley.me>2025-11-29 22:16:44 +0200
committerJosh Kingsley <josh@joshkingsley.me>2025-11-29 22:16:44 +0200
commit1696d665f01c6e8bff04946c69ad0258bf72b5eb (patch)
treea37d8efcd8eacd90d0cbea08fb2e09a0b3cbaa90 /apps/web
parentd724cc0bf6ff6d351319e6fb00f5184a04e16ac0 (diff)
feat: export proper types from docHEADmain
Diffstat (limited to 'apps/web')
-rw-r--r--apps/web/src/components/app/index.ts11
-rw-r--r--apps/web/src/index.ts5
2 files changed, 9 insertions, 7 deletions
diff --git a/apps/web/src/components/app/index.ts b/apps/web/src/components/app/index.ts
index a2c0c9d..63fde86 100644
--- a/apps/web/src/components/app/index.ts
+++ b/apps/web/src/components/app/index.ts
@@ -5,16 +5,23 @@ import {
changeSelectedSubdivisions,
getSelectedSubdivisionsCount,
} from "../../grid";
-import { Doc } from "../../types";
+import { Doc as LocalDoc } from "../../types";
import ntvGrid, { NotiveGridElement } from "../grid";
import renderGrid from "../grid/renderGrid";
import { GridSelection } from "../grid/selection";
import ntvToolbar from "../toolbar";
import "./index.css";
+import { State } from "@notive/doc";
+
+const state = new State();
+
+state.create_grid();
+
+console.log(state.to_json());
@customElement("ntv-app")
export class NotiveAppElement extends NotiveElement {
- doc: Doc = defaultDoc();
+ doc: LocalDoc = defaultDoc();
#selectedGridId?: string;
#selection?: GridSelection;
diff --git a/apps/web/src/index.ts b/apps/web/src/index.ts
index 857e76a..7842326 100644
--- a/apps/web/src/index.ts
+++ b/apps/web/src/index.ts
@@ -1,8 +1,3 @@
import ntvApp from "./components/app";
-import { State } from "@notive/doc";
-
-const state = new State();
-state.create_grid();
-console.log(state.to_json());
document.body.append(ntvApp());