import { PropertyConfig } from './PropertyConfig'; export class PropertyConfigMap extends Map { private hasSetCookiesPropertyFlag = false; public set(key: string, value: PropertyConfig): this { if (value.get === 'set-cookies') { this.hasSetCookiesPropertyFlag = true; } return super.set(key, value); } public hasSetCookiesProperty(): boolean { return this.hasSetCookiesPropertyFlag; } public toJSON(): Record { return Object.fromEntries(this.entries()); } }