Skip to content

Commit

Permalink
feat(docs): add types to twoslash compilerOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
prazdevs committed Sep 2, 2024
1 parent 5c011af commit 5f61f26
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions docs/.vitepress/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,23 @@ import { en } from './en'
export default defineConfig({
title: 'Pinia Plugin Persistedstate',
base: '/pinia-plugin-persistedstate/',
head: [['link', { rel: 'icon', href: '/favicon.ico' }]],
head: [
['link', {
rel: 'icon',
href: '/pinia-plugin-persistedstate/favicon.ico',
}],
],
lastUpdated: true,
markdown: {
typographer: true,
codeTransformers: [
transformerTwoslash(),
transformerTwoslash({
twoslashOptions: {
compilerOptions: {
types: ['pinia-plugin-persistedstate'],
},
},
}),
],
theme: {
dark: 'catppuccin-mocha',
Expand All @@ -28,7 +39,10 @@ export default defineConfig({
options: algolia,
},
socialLinks: [
{ icon: 'github', link: 'https://github.com/prazdevs/pinia-plugin-persistedstate' },
{
icon: 'github',
link: 'https://github.com/prazdevs/pinia-plugin-persistedstate',
},
],
},
locales: {
Expand Down

0 comments on commit 5f61f26

Please sign in to comment.