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

Reexport SamlConfig type to solve a regression in consumer packages #516

Merged
merged 2 commits into from
Dec 21, 2020
Merged

Reexport SamlConfig type to solve a regression in consumer packages #516

merged 2 commits into from
Dec 21, 2020

Conversation

carboneater
Copy link
Contributor

Description

Quite similar to #476
Maintainers of the @types/passport-saml package exported the SamlConfig type: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/passport-saml/index.d.ts#L39

Passport-SAML-Metadata (https://github.com/compwright/passport-saml-metadata) which depends on this package@latest and, more importantly, its types were referring to that interface.
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/passport-saml-metadata/src/metadata.d.ts
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/passport-saml-metadata/src/passport.d.ts
(Never mind my own code using this interface for convenience reasons as well.)

Re-Exporting the SamlConfig interface will resolve TypeScript compilation issues.

Checklist:

  • Issue Addressed: [x]
    This really is [BUG] No exported member #475 all over again.
  • Link to SAML spec: [x]
  • Tests included? [x]
    (I didn't plug in any, as TSC was ignoring the test folder, but if you feel this should be solved sooner rather than later)
  • Documentation updated? [x]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants