File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
packages/apm/src/integrations Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 33## Unreleased
44
55- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
6+ - [ tracing] fix: Add manual ` DOMStringList ` typing (#2718 )
67
78## 5.19.0
89
Original file line number Diff line number Diff line change 1+ /**
2+ * A type returned by some APIs which contains a list of DOMString (strings).
3+ *
4+ * Copy DOMStringList interface so that user's dont have to include dom typings with Tracing integration
5+ * Based on https://github.com/microsoft/TypeScript/blob/4cf0afe2662980ebcd8d444dbd13d8f47d06fcd5/lib/lib.dom.d.ts#L4051
6+ */
7+ interface DOMStringList {
8+ /**
9+ * Returns the number of strings in strings.
10+ */
11+ readonly length : number ;
12+ /**
13+ * Returns true if strings contains string, and false otherwise.
14+ */
15+ contains ( str : string ) : boolean ;
16+ /**
17+ * Returns the string with index index from strings.
18+ */
19+ item ( index : number ) : string | null ;
20+ [ index : number ] : string ;
21+ }
22+
23+ declare var DOMStringList : {
24+ prototype : DOMStringList ;
25+ new ( ) : DOMStringList ;
26+ } ;
27+
128/**
229 * The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to.
330 * Both the Document and Window interface have such a linked Location, accessible via Document.location and Window.location respectively.
You can’t perform that action at this time.
0 commit comments