From 878af7cc8542bd68294bb52c54b1220bbcc50d8f Mon Sep 17 00:00:00 2001 From: Luan Date: Wed, 20 Nov 2024 19:34:13 -0300 Subject: [PATCH] chore: make `Actions` readonly in some classes --- src/core/managers/AccountManager.ts | 2 +- src/core/managers/InteractionManager.ts | 2 +- src/core/managers/PlaylistManager.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/managers/AccountManager.ts b/src/core/managers/AccountManager.ts index 77d1d16cf..2edeb471a 100644 --- a/src/core/managers/AccountManager.ts +++ b/src/core/managers/AccountManager.ts @@ -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; diff --git a/src/core/managers/InteractionManager.ts b/src/core/managers/InteractionManager.ts index eb0f0f4de..07b751852 100644 --- a/src/core/managers/InteractionManager.ts +++ b/src/core/managers/InteractionManager.ts @@ -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; diff --git a/src/core/managers/PlaylistManager.ts b/src/core/managers/PlaylistManager.ts index 0d52dc693..5247e2b9d 100644 --- a/src/core/managers/PlaylistManager.ts +++ b/src/core/managers/PlaylistManager.ts @@ -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;