From 26cdec0508611cf70fafdea8abe37a992bbaab83 Mon Sep 17 00:00:00 2001 From: Alex Yang Date: Wed, 7 Jan 2026 14:20:46 +0800 Subject: [PATCH] fix: type --- .../better-auth/src/plugins/organization/organization.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/better-auth/src/plugins/organization/organization.ts b/packages/better-auth/src/plugins/organization/organization.ts index 4e944be7cc..6075c91c16 100644 --- a/packages/better-auth/src/plugins/organization/organization.ts +++ b/packages/better-auth/src/plugins/organization/organization.ts @@ -72,7 +72,7 @@ declare module "@better-auth/core" { // biome-ignore lint/correctness/noUnusedVariables: Auth and Context need to be same as declared in the module interface BetterAuthPluginRegistry { organization: { - creator: OrganizationPluginCreator; + creator: typeof organization; }; } } @@ -295,12 +295,6 @@ export type OrganizationPlugin = { options: NoInfer; }; -export interface OrganizationPluginCreator { - ( - options?: O | undefined, - ): OrganizationPlugin; -} - /** * Organization plugin for Better Auth. Organization allows you to create teams, members, * and manage access control for your users.