diff --git a/packages/shared/src/events/event-utils.ts b/packages/shared/src/events/event-utils.ts index 636b07d2d0..da01efa0df 100644 --- a/packages/shared/src/events/event-utils.ts +++ b/packages/shared/src/events/event-utils.ts @@ -1,5 +1,5 @@ -import { ProviderStatus } from "../provider"; -import { ProviderEvents } from "./events"; +import { ProviderStatus } from '../provider'; +import { ProviderEvents } from './events'; const eventStatusMap = { [ProviderStatus.READY]: ProviderEvents.Ready, @@ -9,12 +9,12 @@ const eventStatusMap = { }; /** - * Returns true if the provider's status matches the event. + * Returns true if the provider's status corresponds to the event. * If the provider's status is not defined, it matches READY. * - * @param event - * @param status - * @returns boolean indicating if the provider status matches the event. + * @param event event to match + * @param status status of provider + * @returns boolean indicating if the provider status corresponds to the event. */ export const statusMatchesEvent = (event: ProviderEvents, status?: ProviderStatus): boolean => { return (!status && event === ProviderEvents.Ready) || eventStatusMap[status!] === event; diff --git a/packages/shared/src/open-feature.ts b/packages/shared/src/open-feature.ts index 1c13d7d3f1..a9b4085d71 100644 --- a/packages/shared/src/open-feature.ts +++ b/packages/shared/src/open-feature.ts @@ -132,7 +132,7 @@ export abstract class OpenFeatureCommonAPI