Skip to content

Commit d1780a3

Browse files
committed
fix(res): type of XML
1 parent 1319143 commit d1780a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/src/response.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class HttpResponse {
2828
return JSON.parse(string) as T;
2929
}
3030

31-
public async toXML <T = unknown>(): Promise<{ root: T }> {
31+
public async toXML <T = unknown>(): Promise<T> {
3232
const { XMLParser } = await import("fast-xml-parser");
3333

3434
const parser = new XMLParser({

0 commit comments

Comments
 (0)