]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: missing "function" code example (#468)
authorPhilippe Da Silva <77384971+philippedasilva-orizone@users.noreply.github.com>
Mon, 3 May 2021 15:59:51 +0000 (17:59 +0200)
committerGitHub <noreply@github.com>
Mon, 3 May 2021 15:59:51 +0000 (17:59 +0200)
Just a quick fix in the plugin documentation.

docs/core-concepts/plugins.md

index 5ed42e92ee97968c084894b02e026986b94b4bcb..3d66453fbe53200b1b77be7b205fe4f131d9eb07 100644 (file)
@@ -121,7 +121,7 @@ A Pinia plugin can be typed as follows:
 ```ts
 import { PiniaPluginContext } from 'pinia'
 
-export myPiniaPlugin(context: PiniaPluginContext) {
+export function myPiniaPlugin(context: PiniaPluginContext) {
   // ...
 }
 ```