Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(nuxt): usePinia composable type #2890

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from

Conversation

th1m0
Copy link

@th1m0 th1m0 commented Jan 18, 2025

This PR fixes a type issue in the nuxt module. using the composable usePinia would always return unknown while it should always return the Pinia type.

Before: composable.d.ts

export * from 'pinia';
export declare const usePinia: () => unknown;

After: composable.d.ts

import type { Pinia } from 'pinia';
export * from 'pinia';
export declare const usePinia: () => Pinia;

Copy link

netlify bot commented Jan 18, 2025

Deploy Preview for pinia-playground canceled.

Name Link
🔨 Latest commit 6dbfce7
🔍 Latest deploy log https://app.netlify.com/sites/pinia-playground/deploys/678bad820976080008950c7c

Copy link

netlify bot commented Jan 18, 2025

Deploy Preview for pinia-official canceled.

Name Link
🔨 Latest commit 6dbfce7
🔍 Latest deploy log https://app.netlify.com/sites/pinia-official/deploys/678bad8269ffa8000801fee6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant