Skip to content

Commit

Permalink
fix(types): update remove method type in StateContainer for improved …
Browse files Browse the repository at this point in the history
…type safety in state management functionalities
  • Loading branch information
guidomodarelli committed Dec 12, 2024
1 parent ee2a167 commit 1f1caa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/wazuh-core/public/services/state/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { LifecycleService } from '../types';
export interface StateContainer<T = any> {
get: () => T;
set: (value: T) => T;
remove: () => any;
remove: () => T;
updater$: BehaviourSubject<T>;
subscribe: (callback: (value: T) => void) => Subscription;
}
Expand Down

0 comments on commit 1f1caa9

Please sign in to comment.