UNPKG

415 BTypeScriptView Raw
1import { CommonPublicClientOptions, V6Client } from '@aws-amplify/api-graphql';
2/**
3 * Generates an API client that can work with models or raw GraphQL
4 *
5 * @returns {@link V6Client}
6 * @throws {@link Error} - Throws error when client cannot be generated due to configuration issues.
7 */
8export declare function generateClient<T extends Record<any, any> = never>(options?: CommonPublicClientOptions): V6Client<T>;