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

Add nuxt to devdependencies #125

Merged
merged 5 commits into from
Jun 17, 2024
Merged

Conversation

michaelyons
Copy link
Collaborator

What is this PR and why do we need it?

This PR adds nuxt to the devDependencies to give users the true type definition of useCookie from nuxt instead of describing the type ourselves.

Pre-Merge Checklist (if applicable)

  • Unit and Feature tests have been added/updated for logic changes, or there is a justifiable reason for not doing so.

@michaelyons michaelyons linked an issue Jun 17, 2024 that may be closed by this pull request
@michaelyons michaelyons changed the title 116 add nuxt to devdependencies #116 - Add nuxt to devdependencies Jun 17, 2024
@michaelyons michaelyons changed the title #116 - Add nuxt to devdependencies Add nuxt to devdependencies Jun 17, 2024
@dmackinn dmackinn self-requested a review June 17, 2024 18:12
Copy link
Collaborator

@JakeLo123 JakeLo123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some typescript compile errors. Requesting to fix those before merging please!

@JakeLo123 JakeLo123 self-requested a review June 17, 2024 20:10
@@ -54,10 +54,10 @@ export interface FusionAuthConfig {
onAutoRefreshFailure?: (error: Error) => void;

/**
* Pass in `useCookie` from nuxt/app [useCookie](https://nuxt.com/docs/api/composables/use-cookie).
* Pass in `useCookieType` from nuxt/app [useCookie](https://nuxt.com/docs/api/composables/use-cookie).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment shouldn't be changed because the thing they need to pass in is still called useCookie

@@ -1,5 +1,5 @@
import { Ref } from 'vue';
import { UseCookie } from './createFusionAuth/NuxtUseCookieAdapter';
import { useCookie as useCookieType } from 'nuxt/app';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to import as here because there's no name collision in this file.

@JakeLo123 JakeLo123 self-requested a review June 17, 2024 20:15
@JakeLo123 JakeLo123 merged commit 83c1f57 into main Jun 17, 2024
3 checks passed
@JakeLo123 JakeLo123 deleted the 116-add-nuxt-to-devdependencies branch June 17, 2024 20:17
@JakeLo123 JakeLo123 added the Vue label Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Nuxt to devDependencies
3 participants