export declare interface ISerializeResponse { type : string ; id ? : string ; attributes : { [ key ] : any ; } ; } export class SerializerService { public async deleteProperties ( data , properties ) { for await ( const property of properties ) { delete data [ property ] ; } return data ; } public serializeResponse ( type , result , id ? ) { return { type , id , attributes : result , } ; } } export const serializerService = new SerializerService ( ) ;