@lomray/react-mobx-manager
Version:
This package provides Mobx stores manager for react.
16 lines (15 loc) • 388 B
TypeScript
import { Plugin } from 'vite';
interface IPluginOptions {
root?: string;
isProd?: boolean;
}
/**
* Generate unique store id's
*
* Detect mobx store:
* - by makeObservable or makeAutoObservable
* - by @mobx-store jsdoc before class
* @constructor
*/
declare function IdGenerator({ root, isProd }?: IPluginOptions): Plugin;
export { IdGenerator as default, IPluginOptions };