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(typescript): add missing types #284

Merged
merged 7 commits into from
Sep 2, 2020
Merged

fix(typescript): add missing types #284

merged 7 commits into from
Sep 2, 2020

Conversation

jaulz
Copy link
Contributor

@jaulz jaulz commented Sep 1, 2020

Some helpful properties were missing in the types.

types/index.d.ts Outdated
Comment on lines 72 to 73
scopes_supported?: string[];

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scopes_supported is not an IANA registered client metadata property. Please remove this blob.

scopes_supported could potentially go to the IssuerMetadata interface, but as the library never reacts to its presence it's not included. I'm keen to only include properties that change the client/issuer behaviour. So it's either all or nothing and i think the inclusion of [key: string]: unknown; handles all possible metadata for anyone.

@@ -346,6 +347,7 @@ export class Client {
[custom.http_options]: CustomHttpOptionsProvider;
[custom.clock_tolerance]: number;
metadata: ClientMetadata;
issuer: Issuer<this>;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's also a static version of it, please add that too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@jaulz
Copy link
Contributor Author

jaulz commented Sep 1, 2020

Thanks for the detailed review!

types/index.d.ts Show resolved Hide resolved
types/index.d.ts Outdated Show resolved Hide resolved
@panva panva changed the title fix: add missing types fix(typescript): add missing types Sep 2, 2020
@panva panva merged commit 49e0ff0 into panva:master Sep 2, 2020
@panva
Copy link
Owner

panva commented Sep 2, 2020

@jaulz thanks for the contribution!

@jaulz jaulz deleted the patch-1 branch September 2, 2020 07:42
@github-actions github-actions bot locked and limited conversation to collaborators Dec 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants