Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix package build issues #36

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading