export interface RequestToken { __requestTokenBrand : unknown ; } export class RequestManager { private _token : number = 0 ; public startNewRequest ( ) { return ( ++ this . _token as unknown ) as RequestToken ; } public isRequestLatest ( token ) { return ( ( token as unknown ) as number ) === this . _token ; } }