UNPKG

@specifai-net/appsync-template-tester

Version:

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

24 lines (23 loc) 770 B
/** * Map helpers in $util.map * * $util.map contains methods to help with common * Map operations, such as removing or retaining * items from a Map for filtering use cases. */ /** * Makes a shallow copy of the first map, retaining only the * keys specified in the list, if they are present. All other * keys will be removed from the copy. * @param map * @param list */ export declare function copyAndRetainAllKeys(map: object, list: Array<string>): object; /** * Makes a shallow copy of the first map, removing any entries * where the key is specified in the list, if they are present. * All other keys will be retained in the copy. * @param map * @param list */ export declare function copyAndRemoveAllKeys(map: object, list: Array<string>): object;