From 66876a46ecef0bc3263e3f16e097bd1b2b3059a0 Mon Sep 17 00:00:00 2001 From: Volker Braun Date: Sun, 24 Jul 2016 08:01:27 +0200 Subject: [PATCH] Indexing the IDocumentService should return Document (#10237) JQ(lite)-unwrapping $document[0] should be of type Document instead of the default HTMLElement. Otherwise important methods like getElementById are missing. --- angularjs/angular.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index 2d9469ef80..82cce46541 100644 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -985,7 +985,9 @@ declare namespace angular { // DocumentService // see http://docs.angularjs.org/api/ng.$document /////////////////////////////////////////////////////////////////////////// - interface IDocumentService extends JQuery {} + interface IDocumentService extends JQuery { + [index: number]: Document; + } /////////////////////////////////////////////////////////////////////////// // ExceptionHandlerService