UNPKG

stimulus-store

Version:

Lightweight state management for Stimulus.js

8 lines (7 loc) 454 B
/** * Logs a warning message if the store is accessed directly and `isWarned` is false. * @param {string} camelizedName - The camelized name of the store. * @param {boolean} isWarned - A flag indicating if the warning has already been logged. * @returns {boolean} Returns true if the warning was logged, otherwise returns the original `isWarned` value. */ export declare function warnDirectAccess(camelizedName: string, isWarned: boolean): boolean;