@aws-amplify/data-schema
Advanced tools
Comparing version 0.14.0 to 0.14.1
@@ -40,3 +40,3 @@ import { SetTypeSubArg } from '@aws-amplify/data-schema-types'; | ||
export type CustomOperationParamShape = { | ||
arguments: CustomArguments; | ||
arguments: CustomArguments | null; | ||
returnType: CustomReturnType | null; | ||
@@ -73,3 +73,3 @@ functionRef: string | null; | ||
export declare function query(): CustomOperation<{ | ||
arguments: CustomArguments; | ||
arguments: null; | ||
returnType: null; | ||
@@ -83,3 +83,3 @@ functionRef: null; | ||
export declare function mutation(): CustomOperation<{ | ||
arguments: CustomArguments; | ||
arguments: null; | ||
returnType: null; | ||
@@ -93,3 +93,3 @@ functionRef: null; | ||
export declare function subscription(): CustomOperation<{ | ||
arguments: CustomArguments; | ||
arguments: null; | ||
returnType: null; | ||
@@ -96,0 +96,0 @@ functionRef: null; |
@@ -31,3 +31,3 @@ import type { GenericModelSchema } from '../ModelSchema'; | ||
*/ | ||
export type CustomOpArguments<Shape extends CustomOperationParamShape> = { | ||
export type CustomOpArguments<Shape extends CustomOperationParamShape> = Shape['arguments'] extends null ? never : { | ||
[FieldName in keyof Shape['arguments']]: Shape['arguments'][FieldName] extends ModelField<infer R, any, any> ? R : never; | ||
@@ -34,0 +34,0 @@ }; |
{ | ||
"name": "@aws-amplify/data-schema", | ||
"version": "0.14.0", | ||
"version": "0.14.1", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
647795