export interface AbortSignal { readonly aborted : boolean ; addEventListener ( event , handler ) : this ; removeEventListener ( event , handler ) : this ; } export function resolveAbortSignal ( signal ? ) { if ( signal ) { return signal ; } return { aborted : false , addEventListener ( ) { return this ; } , removeEventListener ( ) { return this ; } } ; }