Skip to content

Commit d18b062

Browse files
committed
Revert "fix(types): make build and parse generic (#594)"
This reverts commit 75acbc5.
1 parent 185dfea commit d18b062

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: src/fxp.d.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,9 @@ type ValidationError = {
8888
};
8989
};
9090

91-
type GenericObjectOrArray<TValue> = Record<string, unknown> | TValue[];
92-
9391
export class XMLParser {
9492
constructor(options?: X2jOptionsOptional);
95-
parse<TObject extends GenericObjectOrArray<unknown> = GenericObjectOrArray<unknown>>(xmlData: string | Buffer ,validationOptions?: validationOptionsOptional | boolean): TObject;
93+
parse(xmlData: string | Buffer ,validationOptions?: validationOptionsOptional | boolean): any;
9694
/**
9795
* Add Entity which is not by default supported by this library
9896
* @param entityIndentifier {string} Eg: 'ent' for &ent;
@@ -106,5 +104,5 @@ export class XMLValidator{
106104
}
107105
export class XMLBuilder {
108106
constructor(options?: XmlBuilderOptionsOptional);
109-
build<TObject extends GenericObjectOrArray<unknown> = GenericObjectOrArray<unknown>>(jObj: TObject): string;
107+
build(jObj: any): any;
110108
}

0 commit comments

Comments
 (0)