Socket
Socket
Sign inDemoInstall

@aws-amplify/data-schema-types

Package Overview
Dependencies
Maintainers
10
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-amplify/data-schema-types - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1

22

lib-esm/client/index.d.ts

@@ -456,2 +456,24 @@ import { DeepReadOnlyObject, UnwrapArray, UnionToIntersection, Prettify, Equal } from '../util';

/**
* The utility type that is used to infer the type (interface) of the generated
* `client.enums` property.
*
* @example
* // The schema:
* {
* TodoStatus: a.enum(['Planned' | 'InProgress' | 'Completed']),
* }
*
* // The inferred interface of the `client.enums`:
* {
* TodoStatus: {
* values: () => Array<'Planned' | 'InProgress' | 'Completed'>;
* }
* }
*/
export type EnumTypes<Schema extends Record<any, any>, ModelMeta extends Record<any, any> = ExtractModelMeta<Schema>> = {
[EnumName in keyof ModelMeta['enums']]: {
values: () => Array<ModelMeta['enums'][EnumName]>;
};
};
/**
* Request options that are passed to custom header functions.

@@ -458,0 +480,0 @@ * `method` and `headers` are not included in custom header functions passed to

2

package.json
{
"name": "@aws-amplify/data-schema-types",
"version": "0.7.0",
"version": "0.7.1",
"license": "Apache-2.0",

@@ -5,0 +5,0 @@ "main": "./lib-esm/index.d.ts",

@@ -720,2 +720,28 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

/**
* The utility type that is used to infer the type (interface) of the generated
* `client.enums` property.
*
* @example
* // The schema:
* {
* TodoStatus: a.enum(['Planned' | 'InProgress' | 'Completed']),
* }
*
* // The inferred interface of the `client.enums`:
* {
* TodoStatus: {
* values: () => Array<'Planned' | 'InProgress' | 'Completed'>;
* }
* }
*/
export type EnumTypes<
Schema extends Record<any, any>,
ModelMeta extends Record<any, any> = ExtractModelMeta<Schema>,
> = {
[EnumName in keyof ModelMeta['enums']]: {
values: () => Array<ModelMeta['enums'][EnumName]>;
};
};
/**
* Request options that are passed to custom header functions.

@@ -722,0 +748,0 @@ * `method` and `headers` are not included in custom header functions passed to

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc