refactor: import types from core

This commit is contained in:
Taesu
2025-11-13 13:01:38 +09:00
parent 6f0e3bba4e
commit 7d50e736e9
5 changed files with 9 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
import type { BetterAuthClientPlugin } from "better-auth";
import type { BetterAuthClientPlugin } from "@better-auth/core";
import type { stripe } from "./index";
export const stripeClient = <

View File

@@ -1,4 +1,5 @@
import { type GenericEndpointContext, logger } from "better-auth";
import type { GenericEndpointContext } from "@better-auth/core";
import { logger } from "better-auth";
import type Stripe from "stripe";
import type { InputSubscription, StripeOptions, Subscription } from "./types";
import { getPlanByPriceInfo } from "./utils";

View File

@@ -1,8 +1,9 @@
import type { BetterAuthPlugin } from "@better-auth/core";
import {
createAuthEndpoint,
createAuthMiddleware,
} from "@better-auth/core/api";
import { type BetterAuthPlugin, logger } from "better-auth";
import { logger } from "better-auth";
import {
APIError,
getSessionFromCtx,

View File

@@ -1,9 +1,6 @@
import type {
GenericEndpointContext,
InferOptionSchema,
Session,
User,
} from "better-auth";
import type { GenericEndpointContext } from "@better-auth/core";
import type { Session, User } from "@better-auth/core/db";
import type { InferOptionSchema } from "better-auth/types";
import type Stripe from "stripe";
import type { subscriptions, user } from "./schema";

View File

@@ -1,4 +1,4 @@
import type { GenericEndpointContext } from "better-auth";
import type { GenericEndpointContext } from "@better-auth/core";
import type Stripe from "stripe";
import type { StripeOptions } from "./types";