diff --git a/packages/integrations/useJwt/index.ts b/packages/integrations/useJwt/index.ts index ab6dad51645..30f1f361488 100644 --- a/packages/integrations/useJwt/index.ts +++ b/packages/integrations/useJwt/index.ts @@ -5,7 +5,7 @@ import { resolveUnref } from '@vueuse/shared' import jwt_decode from 'jwt-decode' import type { JwtDecodeOptions, JwtHeader, JwtPayload } from 'jwt-decode' -export interface JwtOptions { +export interface UseJwtOptions { /** * Value returned when encounter error on decoding * @@ -19,7 +19,7 @@ export interface JwtOptions { onError?: (error: unknown) => void } -export interface JwtResult { +export interface UseJwtReturn { header: ComputedRef
payload: ComputedRef } @@ -36,8 +36,8 @@ export function useJwt< Fallback = null, >( encodedJwt: MaybeComputedRef, - options: JwtOptions = {}, -): JwtResult { + options: UseJwtOptions = {}, +): UseJwtReturn { const { onError, fallbackValue = null,