@@ -4,13 +4,7 @@ import { type DocImpl, getDoc, isDoc } from "../src/doc.ts";
44import { isCell , isCellLink } from "../src/cell.ts" ;
55import { isQueryResult } from "../src/query-result-proxy.ts" ;
66import { type ReactivityLog } from "../src/scheduler.ts" ;
7- import {
8- getTopFrame ,
9- ID ,
10- JSONSchema ,
11- popFrame ,
12- pushFrame ,
13- } from "@commontools/builder" ;
7+ import { ID , JSONSchema , popFrame , pushFrame } from "@commontools/builder" ;
148import { addEventHandler , idle } from "../src/scheduler.ts" ;
159import { addCommonIDfromObjectID } from "../src/utils.ts" ;
1610
@@ -562,7 +556,7 @@ describe("asCell with schema", () => {
562556 } ,
563557 } ,
564558 required : [ "name" , "age" , "tags" , "nested" ] ,
565- } satisfies JSONSchema ;
559+ } as const satisfies JSONSchema ;
566560
567561 const cell = c . asCell ( [ ] , undefined , schema ) ;
568562 const value = cell . get ( ) ;
@@ -596,7 +590,7 @@ describe("asCell with schema", () => {
596590 } ,
597591 } ,
598592 required : [ "id" , "metadata" ] ,
599- } satisfies JSONSchema ;
593+ } as const satisfies JSONSchema ;
600594
601595 const value = c . asCell ( [ ] , undefined , schema ) . get ( ) ;
602596
@@ -643,7 +637,7 @@ describe("asCell with schema", () => {
643637 } ,
644638 } ,
645639 required : [ "name" , "children" ] ,
646- } satisfies JSONSchema ;
640+ } as const satisfies JSONSchema ;
647641
648642 const value = c . asCell ( [ ] , undefined , schema ) . get ( ) ;
649643
@@ -700,7 +694,7 @@ describe("asCell with schema", () => {
700694 } ,
701695 } ,
702696 required : [ "user" ] ,
703- } satisfies JSONSchema ;
697+ } as const satisfies JSONSchema ;
704698
705699 const cell = c . asCell ( [ ] , undefined , schema ) ;
706700 const userCell = cell . key ( "user" ) ;
@@ -831,7 +825,7 @@ describe("asCell with schema", () => {
831825 } ,
832826 } ,
833827 required : [ "id" , "context" ] ,
834- } satisfies JSONSchema ;
828+ } as const satisfies JSONSchema ;
835829
836830 const cell = c . asCell ( [ ] , undefined , schema ) ;
837831 const value = cell . get ( ) ;
@@ -873,7 +867,7 @@ describe("asCell with schema", () => {
873867 } ,
874868 } ,
875869 required : [ "context" ] ,
876- } satisfies JSONSchema ;
870+ } as const satisfies JSONSchema ;
877871
878872 const cell = c . asCell ( [ ] , undefined , schema ) ;
879873 const value = cell . get ( ) ;
@@ -919,7 +913,7 @@ describe("asCell with schema", () => {
919913 } ,
920914 } ,
921915 required : [ "context" ] ,
922- } satisfies JSONSchema ;
916+ } as const satisfies JSONSchema ;
923917
924918 const cell = c . asCell ( [ ] , undefined , schema ) ;
925919 const value = cell . get ( ) ;
@@ -965,7 +959,7 @@ describe("asCell with schema", () => {
965959 } ,
966960 } ,
967961 required : [ "context" ] ,
968- } satisfies JSONSchema ;
962+ } as const satisfies JSONSchema ;
969963
970964 const cell = c . asCell ( [ ] , undefined , schema ) ;
971965 const value = cell . get ( ) ;
@@ -1032,7 +1026,7 @@ describe("asCell with schema", () => {
10321026 } ,
10331027 } ,
10341028 required : [ "context" ] ,
1035- } satisfies JSONSchema ;
1029+ } as const satisfies JSONSchema ;
10361030
10371031 const log = { reads : [ ] , writes : [ ] } as ReactivityLog ;
10381032 const cell = c . asCell ( [ ] , log , schema ) ;
@@ -1082,7 +1076,7 @@ describe("asCell with schema", () => {
10821076 } ,
10831077 } ,
10841078 required : [ "items" ] ,
1085- } satisfies JSONSchema ;
1079+ } as const satisfies JSONSchema ;
10861080
10871081 const cell = c . asCell ( [ ] , undefined , schema ) ;
10881082 const itemsCell = cell . key ( "items" ) ;
@@ -1115,7 +1109,7 @@ describe("asCell with schema", () => {
11151109 value : { type : "number" } ,
11161110 } ,
11171111 } ,
1118- } satisfies JSONSchema ;
1112+ } as const satisfies JSONSchema ;
11191113
11201114 const cell = c . asCell ( [ ] , undefined , schema ) ;
11211115
@@ -1149,7 +1143,7 @@ describe("asCell with schema", () => {
11491143 type : "object" ,
11501144 properties : { anything : { asCell : true } } ,
11511145 } ,
1152- } satisfies JSONSchema ;
1146+ } as const satisfies JSONSchema ;
11531147
11541148 const cell = c . asCell ( [ ] , undefined , schema ) ;
11551149
@@ -1226,8 +1220,8 @@ describe("asCell with schema", () => {
12261220 const schema = {
12271221 type : "array" ,
12281222 items : { type : "object" , properties : { value : { type : "number" } } } ,
1229- default : [ { [ ID ] : "test" , " value" : 10 } , { [ ID ] : "test2" , " value" : 20 } ] ,
1230- } as JSONSchema ;
1223+ default : [ { [ ID ] : "test" , value : 10 } , { [ ID ] : "test2" , value : 20 } ] ,
1224+ } as const satisfies JSONSchema ;
12311225
12321226 const c = getDoc ( { } , "push-to-undefined-schema-stable-id" , "test" ) ;
12331227 const arrayCell = c . asCell ( [ "items" ] , undefined , schema ) ;
0 commit comments