Skip to content

Commit

Permalink
Fix missing import in the type declarations file
Browse files Browse the repository at this point in the history
  • Loading branch information
rkaw92 committed Dec 12, 2019
1 parent ea05962 commit 54681d1
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { XmlCollection, XmlObject } from "xml-core";
import { XmlCollection, XmlObject, IXmlSerializable, NamespaceManager, XmlNodeType, AssocArray, SelectNodes } from "xml-core";

declare namespace XmlDSigJs {

Expand Down Expand Up @@ -735,7 +735,7 @@ declare namespace XmlDSigJs {

//#region xml/transform

export interface ITransform extends XmlCore.IXmlSerializable {
export interface ITransform extends IXmlSerializable {
Algorithm: string;
LoadInnerXml(node: Node): void;
GetInnerXml(): Node | null;
Expand Down Expand Up @@ -938,14 +938,14 @@ declare namespace XmlDSigJs {

protected withComments: boolean;
protected exclusive: boolean;
protected propagatedNamespaces: XmlCore.NamespaceManager;
protected propagatedNamespaces: NamespaceManager;
protected document: Document;
protected result: string[];
protected visibleNamespaces: XmlCore.NamespaceManager;
protected visibleNamespaces: NamespaceManager;
protected inclusiveNamespacesPrefixList: string[];
protected state: XmlCanonicalizerState;

constructor(withComments: boolean, excC14N: boolean, propagatedNamespaces?: XmlCore.NamespaceManager);
constructor(withComments: boolean, excC14N: boolean, propagatedNamespaces?: NamespaceManager);

public Canonicalize(node: Node): string;

Expand All @@ -957,8 +957,8 @@ declare namespace XmlDSigJs {
protected WriteElementNode(node: Element): void;
protected WriteNamespacesAxis(node: Element): number;
protected WriteAttributesAxis(node: Node): void;
protected NormalizeString(input: string | null, type: XmlCore.XmlNodeType): string;
protected IsTextNode(type: XmlCore.XmlNodeType): boolean;
protected NormalizeString(input: string | null, type: XmlNodeType): string;
protected IsTextNode(type: XmlNodeType): boolean;
protected IsNamespaceInclusive(node: Element, prefix: string | null): boolean;
protected IsNamespaceRendered(prefix: string | null, uri: string | null): boolean;
}
Expand Down Expand Up @@ -1046,8 +1046,8 @@ declare namespace XmlDSigJs {
/**
* Provides a wrapper on a core XML signature object to facilitate creating XML signatures.
*/
export class SignedXml implements XmlCore.IXmlSerializable {
public Parent?: Element | XmlCore.XmlObject;
export class SignedXml implements IXmlSerializable {
public Parent?: Element | XmlObject;
public readonly XmlSignature: Signature;
public Key?: CryptoKey;
public Algorithm?: Algorithm | RsaPssParams | EcdsaParams;
Expand Down Expand Up @@ -1081,7 +1081,7 @@ declare namespace XmlDSigJs {
/**
* Returns dictionary of namespaces used in signature
*/
protected GetSignatureNamespaces(): XmlCore.AssocArray<string>;
protected GetSignatureNamespaces(): AssocArray<string>;
/**
* Copies namespaces from source element and its parents into destination element
*/
Expand All @@ -1102,7 +1102,7 @@ declare namespace XmlDSigJs {
//#endregion

// Methods from xml-core
export const Select: XmlCore.SelectNodes;
export const Select: SelectNodes;
export function Parse(xmlString: string): Document;
export function Stringify(target: Node): string;

Expand Down

0 comments on commit 54681d1

Please sign in to comment.