@soda-gql/codegen 0.11.3 → 0.11.4
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 +4 -4
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as neverthrow3 from "neverthrow";
|
|
2
2
|
import { Result } from "neverthrow";
|
|
3
3
|
import { DocumentNode } from "graphql";
|
|
4
4
|
|
|
@@ -72,7 +72,7 @@ type CodegenSuccess = {
|
|
|
72
72
|
type CodegenResult = Result<CodegenSuccess, CodegenError>;
|
|
73
73
|
//#endregion
|
|
74
74
|
//#region packages/codegen/src/inject-template.d.ts
|
|
75
|
-
declare const writeInjectTemplate: (outPath: string) =>
|
|
75
|
+
declare const writeInjectTemplate: (outPath: string) => neverthrow3.Err<void, CodegenError> | neverthrow3.Ok<void, CodegenError>;
|
|
76
76
|
declare const getInjectTemplate: () => string;
|
|
77
77
|
//#endregion
|
|
78
78
|
//#region packages/codegen/src/runner.d.ts
|
|
@@ -83,12 +83,12 @@ declare const runCodegen: (options: CodegenOptions) => Promise<CodegenResult>;
|
|
|
83
83
|
* Load a single schema file.
|
|
84
84
|
* @internal Use loadSchema for public API.
|
|
85
85
|
*/
|
|
86
|
-
declare const loadSingleSchema: (schemaPath: string) =>
|
|
86
|
+
declare const loadSingleSchema: (schemaPath: string) => neverthrow3.Err<DocumentNode, CodegenError> | neverthrow3.Ok<DocumentNode, CodegenError>;
|
|
87
87
|
/**
|
|
88
88
|
* Load and merge multiple schema files into a single DocumentNode.
|
|
89
89
|
* Uses GraphQL's concatAST to combine definitions from all files.
|
|
90
90
|
*/
|
|
91
|
-
declare const loadSchema: (schemaPaths: readonly string[]) =>
|
|
91
|
+
declare const loadSchema: (schemaPaths: readonly string[]) => neverthrow3.Err<DocumentNode, CodegenError> | neverthrow3.Ok<DocumentNode, CodegenError>;
|
|
92
92
|
declare const hashSchema: (document: DocumentNode) => string;
|
|
93
93
|
//#endregion
|
|
94
94
|
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.11.
|
|
3
|
+
"version": "0.11.4",
|
|
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.11.
|
|
50
|
-
"@soda-gql/runtime": "0.11.
|
|
49
|
+
"@soda-gql/core": "0.11.4",
|
|
50
|
+
"@soda-gql/runtime": "0.11.4",
|
|
51
51
|
"esbuild": "^0.24.0",
|
|
52
52
|
"graphql": "^16.8.1",
|
|
53
53
|
"neverthrow": "^8.1.1"
|