Skip to content

Commit 4d0aa58

Browse files
committed
Allows extending ActiveXObject with with specialized overloads returning string types, per #2541.
1 parent 5330db6 commit 4d0aa58

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib/scriptHost.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
/// Windows Script Host APIS
55
/////////////////////////////
66

7-
declare var ActiveXObject: { new (s: string): any; };
7+
8+
interface ActiveXObject {
9+
new (s: string): any;
10+
}
11+
declare var ActiveXObject: ActiveXObject;
812

913
interface ITextWriter {
1014
Write(s: string): void;

0 commit comments

Comments
 (0)