Skip to content

Commit 7be8f4a

Browse files
committed
fix linter errors
1 parent ae260e6 commit 7be8f4a

File tree

6 files changed

+5
-18
lines changed

6 files changed

+5
-18
lines changed

packages/runner/src/builder/recipe.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import { isObject, isRecord } from "@commontools/utils/types";
1+
import { isRecord } from "@commontools/utils/types";
22
import {
33
type Frame,
44
isOpaqueRef,
55
type JSONSchema,
6-
type JSONSchemaMutable,
76
type Module,
87
type Node,
98
type NodeRef,
@@ -14,7 +13,6 @@ import {
1413
type SchemaWithoutCell,
1514
type ShadowRef,
1615
type toJSON,
17-
UI,
1816
type UnsafeBinding,
1917
} from "./types.ts";
2018
import { opaqueRef } from "./opaque-ref.ts";
@@ -24,7 +22,6 @@ import {
2422
connectInputAndOutputs,
2523
} from "./node-utils.ts";
2624
import {
27-
createJsonSchema,
2825
moduleToJSON,
2926
recipeToJSON,
3027
toJSONWithLegacyAliases,
@@ -170,7 +167,7 @@ function factoryFromRecipe<T, R>(
170167
traverseValue(value, (value) => {
171168
if (isCellResultForDereferencing(value)) value = getCellOrThrow(value);
172169
if (isCell(value) && !allCells.has(value)) {
173-
const { frame, nodes, value: cellValue } = value.export();
170+
const { frame, nodes } = value.export();
174171
if (isOpaqueRef(value) && frame !== getTopFrame()) {
175172
throw new Error(
176173
"Accessing an opaque ref via closure is not supported. Wrap the access in a derive that passes the variable through.",

packages/runner/src/builder/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { isObject, type Mutable } from "@commontools/utils/types";
2-
import { toCell } from "../back-to-cell.ts";
32
import type { SchemaContext } from "@commontools/memory/interface";
43
import type { NormalizedFullLink } from "../link-utils.ts";
54
import type { LegacyJSONCellLink } from "../sigil-types.ts";

packages/runner/src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createNodeFactory } from "./builder/module.ts";
22
import { Module, type ModuleFactory } from "./builder/types.ts";
3-
import { pushFrame, popFrame } from "./builder/recipe.ts";
3+
import { popFrame, pushFrame } from "./builder/recipe.ts";
44
import type { Cell } from "./cell.ts";
55
import type { Action } from "./scheduler.ts";
66
import type { AddCancel } from "./cancel.ts";

packages/runner/src/query-result-proxy.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
import { refer } from "merkle-reference/json";
22
import { isRecord } from "@commontools/utils/types";
33
import { getTopFrame } from "./builder/recipe.ts";
4-
import { type Frame, type OpaqueRef } from "./builder/types.ts";
54
import { toCell } from "./back-to-cell.ts";
6-
import { opaqueRef } from "./builder/opaque-ref.ts";
75
import { diffAndUpdate } from "./data-updating.ts";
86
import { resolveLink } from "./link-resolution.ts";
97
import { type NormalizedFullLink } from "./link-utils.ts";
108
import { type Cell, createCell } from "./cell.ts";
119
import { type IRuntime } from "./runtime.ts";
1210
import { type IExtendedStorageTransaction } from "./storage/interface.ts";
13-
import { fromURI, toURI } from "./uri-utils.ts";
11+
import { toURI } from "./uri-utils.ts";
1412

1513
// Maximum recursion depth to prevent infinite loops
1614
const MAX_RECURSION_DEPTH = 100;

packages/runner/test/json-utils.test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,10 @@ import { StorageManager } from "@commontools/runner/storage/cache.deno";
66

77
import {
88
createJsonSchema,
9-
toJSONWithLegacyAliases,
109
} from "../src/builder/json-utils.ts";
1110
import {
12-
isOpaqueRefMarker,
1311
type JSONSchema,
14-
type Opaque,
15-
type OpaqueRef,
16-
type ShadowRef,
1712
} from "../src/builder/types.ts";
18-
import type { LegacyAlias } from "../src/sigil-types.ts";
1913
import { Runtime } from "../src/runtime.ts";
2014

2115
const signer = await Identity.fromPassphrase("test operator");

packages/runner/test/schema-to-ts.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ import { handler, lift } from "../src/builder/module.ts";
66
import { createBuilder } from "../src/builder/factory.ts";
77
import {
88
type AnyCellWrapping,
9-
type Frame,
109
type JSONSchema,
1110
type OpaqueRef,
1211
Schema,
1312
} from "../src/builder/types.ts";
14-
import { popFrame, pushFrame, recipe } from "../src/builder/recipe.ts";
13+
import { recipe } from "../src/builder/recipe.ts";
1514
import { Cell, Runtime } from "@commontools/runner";
1615
import { Identity } from "@commontools/identity";
1716
import { StorageManager } from "@commontools/runner/storage/cache.deno";

0 commit comments

Comments
 (0)