UNPKG

amplifyquery

Version:
15 lines (14 loc) 576 B
import { AmplifyDataService, SingletonAmplifyService } from "./types"; /** * Function to create an extension service for singleton models * @param baseService Base service * @param getModelId Function to get the unique ID of the model * @returns Extended service supporting singleton pattern */ export declare function createSingletonService<T>(baseService: AmplifyDataService<T>, getModelId: () => Promise<string>): SingletonAmplifyService<T>; /** * Define functions to get model IDs by model */ export declare const getModelIds: { User: () => Promise<string>; };