/**
 * A set of post ids used to detect duplicates
 */ export class PostIdSet { private ids : Set < string > = new Set < string > ( ) ; return public add ( id ) { const contains = this . ids . has ( id ) ; this . ids . add ( id ) ; return contains ; } }