-
Notifications
You must be signed in to change notification settings - Fork 176
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
[ENHANCEMENT]: missing static for some fields #483
Comments
Which .d.ts file you are referring because e.g. Update: After scratching head for a while...maybe you are using types from DefinitelyTyped:
If you want to keep using types from DefinitelyTyped for xml-crypto consider a PR to DefinitelyTyped repo to update its xml-crypto types to match xml-crypto's current implementation or migrate to xml-crypto's own types. |
should we move to static in code ? does not make sense to instance SignedXml to get the algorithms |
If you are looking something like this i.e. to be able to use those algorithms easily in your own code I would suggest you to help maintainer(s) to finish pending stuff for next release version. AFAIK maintainer(s) are needing help to finish #464 (based on content at #328 (comment)) |
Is your feature request related to a problem? Please describe...
in the .d.ts it is marked as static
static CanonicalizationAlgorithms: { [uri: string]: new() => TransformationAlgorithm };
static HashAlgorithms: { [uri: string]: new() => HashAlgorithm };
static SignatureAlgorithms: { [uri: string]: new() => SignatureAlgorithm };
but I can't access them without creating a SignedXml instance
example
SignedXml.CanonicalizationAlgorithms: breaks
but
const signedXml = new SignedXml();
signedXml.CanonicalizationAlgorithms works
Describe teh solution you'd like...
add missing static property
Describe the alternatives you've considered...
creating an instance
The text was updated successfully, but these errors were encountered: