@tinkerstack/graphql-annotation 0.0.2 → 0.0.3

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.mts CHANGED
@@ -10,6 +10,8 @@ declare function Annotate(name: string, opts?: {
10
10
  declare function Annotate(name: string, opts: {
11
11
  data?: Record<string, any>;
12
12
  parameter: string;
13
+ description?: string;
14
+ type?: () => any;
13
15
  }): ParameterDecorator & MethodDecorator;
14
16
  declare function ResolveAnnotation(): MethodDecorator;
15
17
  declare function ResolveAnnotation(annotation: string): MethodDecorator;
package/dist/index.d.ts CHANGED
@@ -10,6 +10,8 @@ declare function Annotate(name: string, opts?: {
10
10
  declare function Annotate(name: string, opts: {
11
11
  data?: Record<string, any>;
12
12
  parameter: string;
13
+ description?: string;
14
+ type?: () => any;
13
15
  }): ParameterDecorator & MethodDecorator;
14
16
  declare function ResolveAnnotation(): MethodDecorator;
15
17
  declare function ResolveAnnotation(annotation: string): MethodDecorator;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinkerstack/graphql-annotation",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Better type-safe-able graphql directives",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -30,7 +30,12 @@ export function Annotate(
30
30
  */
31
31
  export function Annotate(
32
32
  name: string,
33
- opts: { data?: Record<string, any>; parameter: string },
33
+ opts: {
34
+ data?: Record<string, any>;
35
+ parameter: string;
36
+ description?: string;
37
+ type?: () => any;
38
+ },
34
39
  ): ParameterDecorator & MethodDecorator;
35
40
  /**
36
41
  * Applies an annotation to a Query or Mutation handler or parameter for