],
sidebar: {
+ '/api/': [
+ {
+ text: 'packages',
+ children: [
+ { text: 'pinia', link: '/api/modules/pinia.html' },
+ { text: '@pinia/nuxt', link: '/api/modules/pinia_nuxt.html' },
+ { text: '@pinia/testing', link: '/api/modules/pinia_testing.html' },
+ ],
+ },
+ ],
// catch-all fallback
'/': [
{
createTypeDocApp({
name: 'API Documentation',
- // tsconfig: path.resolve(__dirname, '../../tsconfig.json'),
+ tsconfig: path.resolve(__dirname, './typedoc.tsconfig.json'),
// entryPointStrategy: 'packages',
githubPages: false,
entryPoints: [
--- /dev/null
+{
+ "include": ["../pinia/src/global.d.ts", "../*/src/**/*.ts"],
+ "exclude": [
+ "../test-vue-2",
+ "../pinia/__tests__/test-utils.ts",
+ "../pinia/test-dts",
+ "../*/__tests__/**/*.ts",
+ "../*/src/*.spec.ts",
+ "../nuxt/playground",
+ "../nuxt/src/runtime",
+ "**/*.spec.ts"
+ ],
+ "compilerOptions": {
+ "baseUrl": ".",
+ "rootDir": "..",
+ "outDir": "dist",
+ "sourceMap": false,
+ "noEmit": true,
+ "paths": {
+ "@pinia/*": ["../*/src"],
+ "pinia": ["../pinia/src"]
+ },
+
+ "target": "esnext",
+ "module": "esnext",
+ "moduleResolution": "node",
+ "allowJs": false,
+ "skipLibCheck": true,
+
+ "noUnusedLocals": true,
+ "strictNullChecks": true,
+ "noImplicitAny": true,
+ "noImplicitThis": true,
+ "noImplicitReturns": false,
+ "strict": true,
+ "isolatedModules": true,
+
+ "experimentalDecorators": true,
+ "resolveJsonModule": true,
+ "esModuleInterop": true,
+ "removeComments": false,
+ "jsx": "preserve",
+ "lib": ["esnext", "dom"],
+ "types": ["jest", "node", "vite/client"]
+ }
+}
const composables = resolver.resolve('./runtime/composables')
addAutoImport([
{ from: composables, name: 'usePinia' },
- ...options.autoImports.map((imports) =>
+ ...options.autoImports!.map((imports) =>
typeof imports === 'string'
? { from: composables, name: imports }
: { from: composables, name: imports[0], as: imports[1] }
/**
* Pinia instance specifically designed for testing. Extends a regular
- * {@link Pinia} instance with test specific properties.
+ * `Pinia` instance with test specific properties.
*/
export interface TestingPinia extends Pinia {
/** App used by Pinia */