@types/event-source-polyfill
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -19,3 +19,3 @@ // Type definitions for event-source-polyfill 1.0 | ||
headers?: { [name: string]: string }; | ||
Transport?: new () => any; | ||
Transport?: new() => any; | ||
} | ||
@@ -69,5 +69,13 @@ | ||
dispatchEvent(event: Event): boolean; | ||
addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: any): void; | ||
addEventListener<K extends keyof EventSourceEventMap>( | ||
type: K, | ||
listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, | ||
options?: any, | ||
): void; | ||
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: any): void; | ||
removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: any): void; | ||
removeEventListener<K extends keyof EventSourceEventMap>( | ||
type: K, | ||
listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, | ||
options?: any, | ||
): void; | ||
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: any): void; | ||
@@ -80,3 +88,3 @@ } | ||
prototype: any; | ||
new (url: string, eventSourceInitDict?: EventSourceInit): EventSource; | ||
new(url: string, eventSourceInitDict?: EventSourceInit): EventSource; | ||
readonly CLOSED: number; | ||
@@ -83,0 +91,0 @@ readonly CONNECTING: number; |
{ | ||
"name": "@types/event-source-polyfill", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "TypeScript definitions for event-source-polyfill", | ||
@@ -23,4 +23,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/event-source-polyfill", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "b48673ad92543e84f0906ab2025094f4eb95a67afaa1b0f9aff929b12a91e2e8", | ||
"typeScriptVersion": "4.2" | ||
"typesPublisherContentHash": "ec9b892528e19075cb12d84f7c09c8c4067a518fb5ad0d007476fa282ef2f569", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 24 Jan 2023 21:02:44 GMT | ||
* Last updated: Sat, 23 Sep 2023 17:07:22 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5397
78