]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: ts note
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 26 Apr 2021 21:57:31 +0000 (23:57 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 26 Apr 2021 21:57:31 +0000 (23:57 +0200)
See #453

docs/.vitepress/theme/custom.css
docs/cookbook/options-api.md

index 18595861d42844bee6b76ed6d54f4282678bb79a..e31375b4bd294c4bcf994853619f22e0aa164713 100644 (file)
@@ -172,4 +172,5 @@ div[class*='language-'],
 
 code {
   font-size: 0.95em;
+  padding: 0.175em 0.35em;
 }
index 1a267e2a0c2841b181d66efde9017979b3f7b7e7..9929b8ce74237444522c78f7e78d0b7fd5556a36 100644 (file)
@@ -68,3 +68,7 @@ declare module 'pinia' {
   }
 }
 ```
+
+:::warning
+If you are using a TypeScript declaration file (like `global.d.ts`), make sure to `import 'pinia'` at the top of it to expose all existing types.
+:::