@soda-gql/codegen 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +3 -3
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as neverthrow1 from "neverthrow";
|
|
2
2
|
import { Result } from "neverthrow";
|
|
3
3
|
import { DocumentNode } from "graphql";
|
|
4
4
|
|
|
@@ -68,14 +68,14 @@ type CodegenSuccess = {
|
|
|
68
68
|
type CodegenResult = Result<CodegenSuccess, CodegenError>;
|
|
69
69
|
//#endregion
|
|
70
70
|
//#region packages/codegen/src/inject-template.d.ts
|
|
71
|
-
declare const writeInjectTemplate: (outPath: string) =>
|
|
71
|
+
declare const writeInjectTemplate: (outPath: string) => neverthrow1.Err<void, CodegenError> | neverthrow1.Ok<void, CodegenError>;
|
|
72
72
|
declare const getInjectTemplate: () => string;
|
|
73
73
|
//#endregion
|
|
74
74
|
//#region packages/codegen/src/runner.d.ts
|
|
75
75
|
declare const runCodegen: (options: CodegenOptions) => Promise<CodegenResult>;
|
|
76
76
|
//#endregion
|
|
77
77
|
//#region packages/codegen/src/schema.d.ts
|
|
78
|
-
declare const loadSchema: (schemaPath: string) =>
|
|
78
|
+
declare const loadSchema: (schemaPath: string) => neverthrow1.Err<DocumentNode, CodegenError> | neverthrow1.Ok<DocumentNode, CodegenError>;
|
|
79
79
|
declare const hashSchema: (document: DocumentNode) => string;
|
|
80
80
|
//#endregion
|
|
81
81
|
export { type CodegenCliCommand, type CodegenError, type CodegenFormat, type CodegenInjectConfig, type CodegenOptions, type CodegenResult, type CodegenSchemaConfig, type CodegenSuccess, hashSchema, loadSchema, runCodegen, writeInjectTemplate };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soda-gql/codegen",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "GraphQL schema code generation for soda-gql",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"./package.json": "./package.json"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@soda-gql/core": "0.4.
|
|
50
|
-
"@soda-gql/runtime": "0.4.
|
|
49
|
+
"@soda-gql/core": "0.4.2",
|
|
50
|
+
"@soda-gql/runtime": "0.4.2",
|
|
51
51
|
"esbuild": "^0.24.0",
|
|
52
52
|
"graphql": "^16.8.1",
|
|
53
53
|
"neverthrow": "^8.1.1"
|