interface CloseEventInit extends EventInit Private Properties optional code: number optional reason: string optional wasClean: boolean