From 4b7a4f1e49c24c112963e39688fad77f6ba1c91a Mon Sep 17 00:00:00 2001 From: Ole Rehmsen Date: Mon, 5 Oct 2015 20:16:08 +0200 Subject: [PATCH] Adapt the return type of attr() with one parameter of type string to be Attribute. See here how it is used: https://github.com/polotek/libxmljs/blame/master/README.md#L26 I also tried it locally and verified that the returned object has all of the methods of Attribute. --- libxmljs/libxmljs.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libxmljs/libxmljs.d.ts b/libxmljs/libxmljs.d.ts index 045e43f10..20279011f 100644 --- a/libxmljs/libxmljs.d.ts +++ b/libxmljs/libxmljs.d.ts @@ -42,7 +42,7 @@ declare module "libxmljs" { name():string; name(newName:string):void; text():string; - attr(name:string):string; + attr(name:string):Attribute; attr(attr:Attribute):void; attr(attrObject:{[key:string]:string;}):void; attrs():Attribute[];