Skip to content

Commit

Permalink
fix: provide a default type for the group provider details
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlkoch committed Aug 8, 2022
1 parent 3e60913 commit f6d3c67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/model/Group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ export interface KeycloakGroupRepresentation extends ProviderGroupDetails {
};
}

export interface GroupArgs<T extends ProviderGroupDetails> extends BaseEntityArgs {
export interface GroupArgs<T extends ProviderGroupDetails = KeycloakGroupRepresentation> extends BaseEntityArgs {
authProviderId?: string;
providerDetails?: T;
}

export default class Group<T extends ProviderGroupDetails> extends BaseEntity {
export default class Group<T extends ProviderGroupDetails = KeycloakGroupRepresentation> extends BaseEntity {
authProviderId?: string;
providerDetails?: T;

Expand Down

0 comments on commit f6d3c67

Please sign in to comment.