You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.d.ts 1001B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /// <reference lib="dom" />
  2. declare module "@xmldom/xmldom" {
  3. var DOMParser: DOMParserStatic;
  4. var XMLSerializer: XMLSerializerStatic;
  5. var DOMImplementation: DOMImplementationStatic;
  6. interface DOMImplementationStatic {
  7. new(): DOMImplementation;
  8. }
  9. interface DOMParserStatic {
  10. new (): DOMParser;
  11. new (options: Options): DOMParser;
  12. }
  13. interface XMLSerializerStatic {
  14. new (): XMLSerializer;
  15. }
  16. interface DOMParser {
  17. parseFromString(xmlsource: string, mimeType?: string): Document;
  18. }
  19. interface XMLSerializer {
  20. serializeToString(node: Node): string;
  21. }
  22. interface Options {
  23. locator?: any;
  24. errorHandler?: ErrorHandlerFunction | ErrorHandlerObject | undefined;
  25. }
  26. interface ErrorHandlerFunction {
  27. (level: string, msg: any): any;
  28. }
  29. interface ErrorHandlerObject {
  30. warning?: ((msg: any) => any) | undefined;
  31. error?: ((msg: any) => any) | undefined;
  32. fatalError?: ((msg: any) => any) | undefined;
  33. }
  34. }