pinia-plugin-subscription 0.0.0-beta.20 → 0.0.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -10
- package/dist/pinia-plugin-subscription.js +249 -251
- package/dist/pinia-plugin-subscription.umd.cjs +5 -5
- package/dist/types/index.d.ts +11 -9
- package/dist/types/store.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,6 +40,9 @@ import PluginSubscriber from 'pinia-plugin-subscription'
|
|
|
40
40
|
import { Store } from 'pinia-plugin-subscription'
|
|
41
41
|
|
|
42
42
|
class MyPlugin extends Store {
|
|
43
|
+
protected override _className: string = 'MyPlugin'
|
|
44
|
+
protected static override _requiredKeys?: string[] | undefined = ['my-plugin-option']
|
|
45
|
+
|
|
43
46
|
constructor(store, options, debug = false) {
|
|
44
47
|
super(store, options, debug)
|
|
45
48
|
this.doSomething()
|
|
@@ -143,16 +146,7 @@ The `Store` class (see [src/core/Store.ts](src/core/Store.ts)) is a wrapper arou
|
|
|
143
146
|
|
|
144
147
|
## Testing
|
|
145
148
|
|
|
146
|
-
This plugin is tested with Vitest. Coverage reports are available in the `coverage/` directory
|
|
147
|
-
|
|
148
|
-
- Statements: **97.64%** (83/85)
|
|
149
|
-
- Branches: **86.53%** (45/52)
|
|
150
|
-
- Functions: **100%** (38/38)
|
|
151
|
-
- Lines: **97.59%** (81/83)
|
|
152
|
-
|
|
153
|
-
## Contributing
|
|
154
|
-
|
|
155
|
-
Pull requests are welcome. Please respect the project's coding style and add tests for new features.
|
|
149
|
+
This plugin is tested with Vitest. Coverage reports are available in the `coverage/` directory.
|
|
156
150
|
|
|
157
151
|
## License
|
|
158
152
|
|