Skip to content

Commit

Permalink
fix: global exports types
Browse files Browse the repository at this point in the history
  • Loading branch information
LorexIQ committed Nov 22, 2023
1 parent e961187 commit 31ae95b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from '@nuxt/kit'
import defu from "defu";

export interface ModuleOptionsEndpointConfig {
interface ModuleOptionsEndpointConfig {
path: string;
method: 'POST' | 'GET';
}
Expand Down
4 changes: 2 additions & 2 deletions src/runtime/composables/useLocalAuthState.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import type { ModuleOptions } from "../../module";
import {computed, watch} from "vue";
import type { Ref } from "vue";
import type {
UseLocalAuthResponse,
UseLocalAuthCredentials,
UseLocalAuthSession
} from '../types';
import { useCookie, useState, useRuntimeConfig } from "#app";
import useUtils from "../composables/useUtils";
import {computed, watch} from "vue";
import { useCookie, useState, useRuntimeConfig } from "#app";

const { trimWithSymbol } = useUtils();

Expand Down
4 changes: 2 additions & 2 deletions src/runtime/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type {ModuleOptions, ModuleOptionsEndpointConfig} from "../module";
import type {ModuleOptions} from "../module";
import type {UseLocalAuthFetchConfig, UseLocalAuthResponse} from "./types";
import {callWithNuxt, useNuxtApp, useRuntimeConfig} from "#app";
import useLocalAuthState from "./composables/useLocalAuthState";
Expand All @@ -17,7 +17,7 @@ export async function getContext() {
};
}
export async function fetch<T extends UseLocalAuthResponse>(
endpoint: ModuleOptionsEndpointConfig,
endpoint: ModuleOptions['endpoints']['signIn'],
_config: UseLocalAuthFetchConfig
): Promise<T> {
const config: UseLocalAuthFetchConfig = {
Expand Down

0 comments on commit 31ae95b

Please sign in to comment.