UNPKG

@specifai-net/appsync-template-tester

Version:

Unit test AppSync VTL resolvers, with popular frameworks such as Jest

28 lines (27 loc) 975 B
export declare function toString(str: string): { S: string; }; export declare function toStringJson(str: string): string; export declare function toNumber(num: number): { N: number; }; export declare function toNumberJson(num: number): string; export declare function toBoolean(bool: boolean): { BOOL: boolean; }; export declare function toBooleanJson(bool: boolean): string; export declare function toList(list: Array<any>): { L: any[]; }; export declare function toListJson(list: Array<any>): string; export declare function toMap(map: any): { M: any; }; export declare function toMapJson(map: any): string; export declare function toDynamoDB(i: any): any; export declare function toDynamoDBJson(i: any): string; /** * The same as toMapJSON but only for the properties (the root obect becomes {a: {S: "s"}} rather than {M: {a: {S: "s"}}}) */ export declare function toMapValues(map: any): any; export declare function toMapValuesJson(i: any): string;