MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / parseJson

Function parseJson

tests/migration/service-split-postgres-cli.test.ts:21–22  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

19const decodeJson = Schema.decodeUnknownSync(Schema.fromJsonString(Schema.Unknown));
20
21const parseJson = (value: unknown): unknown =>
22 typeof value === "string" ? decodeJson(value) : value;
23
24const createSchema = async (sql: SqlClient): Promise<void> => {
25 await sql.unsafe(`

Calls

no outgoing calls

Tested by

no test coverage detected