Skip to content

Commit

Permalink
fix: data is optional on setPreference
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsiemens committed Nov 25, 2024
1 parent 4bf0ab2 commit ac74474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/user-preferences/user-preferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class UserPreferencesService<TUserPreferenceId extends PropertyKey> {
return userPreference.optedIn
}

public async setPreference(userPreferenceId: TUserPreferenceId, isOptedIn: boolean, data: unknown): Promise<void> {
public async setPreference(userPreferenceId: TUserPreferenceId, isOptedIn: boolean, data?: unknown): Promise<void> {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
const { allowedScope } = this.definitions[userPreferenceId]
Expand Down

0 comments on commit ac74474

Please sign in to comment.