Skip to content

Commit

Permalink
chore: make Actions readonly in some classes
Browse files Browse the repository at this point in the history
  • Loading branch information
LuanRT committed Nov 20, 2024
1 parent bcfc88c commit 878af7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/managers/AccountManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import NavigationEndpoint from '../../parser/classes/NavigationEndpoint.js';
import { InnertubeError } from '../../utils/Utils.js';

export default class AccountManager {
#actions: Actions;
readonly #actions: Actions;

constructor(actions: Actions) {
this.#actions = actions;
Expand Down
2 changes: 1 addition & 1 deletion src/core/managers/InteractionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { Actions, ApiResponse } from '../index.js';
import NavigationEndpoint from '../../parser/classes/NavigationEndpoint.js';

export default class InteractionManager {
#actions: Actions;
readonly #actions: Actions;

constructor(actions: Actions) {
this.#actions = actions;
Expand Down
2 changes: 1 addition & 1 deletion src/core/managers/PlaylistManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { Feed } from '../mixins/index.js';
import NavigationEndpoint from '../../parser/classes/NavigationEndpoint.js';

export default class PlaylistManager {
#actions: Actions;
readonly #actions: Actions;

constructor(actions: Actions) {
this.#actions = actions;
Expand Down

0 comments on commit 878af7c

Please sign in to comment.