From: Eduardo San Martin Morote Date: Mon, 26 Apr 2021 21:57:31 +0000 (+0200) Subject: docs: ts note X-Git-Tag: v2.0.0-alpha.14~48 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=424e29524beba728010d0cfb99a999aa9a39dac4;p=thirdparty%2Fvuejs%2Fpinia.git docs: ts note See #453 --- diff --git a/docs/.vitepress/theme/custom.css b/docs/.vitepress/theme/custom.css index 18595861..e31375b4 100644 --- a/docs/.vitepress/theme/custom.css +++ b/docs/.vitepress/theme/custom.css @@ -172,4 +172,5 @@ div[class*='language-'], code { font-size: 0.95em; + padding: 0.175em 0.35em; } diff --git a/docs/cookbook/options-api.md b/docs/cookbook/options-api.md index 1a267e2a..9929b8ce 100644 --- a/docs/cookbook/options-api.md +++ b/docs/cookbook/options-api.md @@ -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. +:::