sofa-api 0.16.3 → 0.17.0
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/ast.d.ts +7 -7
- package/common.d.ts +2 -2
- package/index.d.ts +5 -3
- package/index.js +994 -918
- package/index.mjs +995 -919
- package/logger.d.ts +6 -6
- package/open-api/index.d.ts +26 -26
- package/open-api/operations.d.ts +29 -11
- package/open-api/types.d.ts +7 -7
- package/open-api/utils.d.ts +3 -3
- package/package.json +4 -4
- package/parse.d.ts +6 -6
- package/router.d.ts +16 -13
- package/sofa.d.ts +58 -50
- package/subscriptions.d.ts +33 -33
- package/types.d.ts +15 -16
package/ast.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DocumentNode, OperationDefinitionNode, VariableDefinitionNode } from 'graphql';
|
|
2
|
-
export type OperationInfo = {
|
|
3
|
-
operation: OperationDefinitionNode;
|
|
4
|
-
variables: ReadonlyArray<VariableDefinitionNode>;
|
|
5
|
-
name: string;
|
|
6
|
-
} | undefined;
|
|
7
|
-
export declare function getOperationInfo(doc: DocumentNode): OperationInfo;
|
|
1
|
+
import { DocumentNode, OperationDefinitionNode, VariableDefinitionNode } from 'graphql';
|
|
2
|
+
export type OperationInfo = {
|
|
3
|
+
operation: OperationDefinitionNode;
|
|
4
|
+
variables: ReadonlyArray<VariableDefinitionNode>;
|
|
5
|
+
name: string;
|
|
6
|
+
} | undefined;
|
|
7
|
+
export declare function getOperationInfo(doc: DocumentNode): OperationInfo;
|
package/common.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function convertName(name: string): string;
|
|
2
|
-
export declare function isNil<T>(val: T): boolean;
|
|
1
|
+
export declare function convertName(name: string): string;
|
|
2
|
+
export declare function isNil<T>(val: T): boolean;
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import type { SofaConfig } from './sofa';
|
|
2
|
-
export { OpenAPI } from './open-api';
|
|
3
|
-
export declare function useSofa(config: SofaConfig): import("
|
|
1
|
+
import type { SofaConfig } from './sofa';
|
|
2
|
+
export { OpenAPI } from './open-api';
|
|
3
|
+
export declare function useSofa(config: SofaConfig): import("fets").Router<any, {}, {
|
|
4
|
+
[TKey: string]: never;
|
|
5
|
+
}>;
|