Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions skipruntime-ts/client/src/protocol.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// Interfaces

export interface JSONObject {
[key: string]: TJSON | null;
}
export type TJSON = number | JSONObject | boolean | (TJSON | null)[] | string;
import type { TJSON } from "skjson";
export type { JSONObject, TJSON } from "skjson";

export type Entry<K extends TJSON, V extends TJSON> = [K, V[]];

Expand Down
4 changes: 2 additions & 2 deletions skipruntime-ts/core/src/skipruntime_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import type { Constant } from "./internals/skipruntime_module.js";
* and values in the Skip Runtime, ensuring that they can be serialized and managed by the
* reactive computation engine.
*/
export type TJSON = number | boolean | string | JSONObject | (TJSON | null)[];
export type JSONObject = { [key: string]: TJSON | null };
import type { JSONObject, TJSON } from "skjson";
export type { JSONObject, TJSON } from "skjson";

/**
* A `Param` is a valid parameter to a Skip runtime mapper function: either a constant JS
Expand Down