fix: type

This commit is contained in:
Alex Yang
2026-01-07 14:20:46 +08:00
parent 9cd7bc25f8
commit 26cdec0508

View File

@@ -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<Auth, Context> {
organization: {
creator: OrganizationPluginCreator;
creator: typeof organization;
};
}
}
@@ -295,12 +295,6 @@ export type OrganizationPlugin<O extends OrganizationOptions> = {
options: NoInfer<O>;
};
export interface OrganizationPluginCreator {
<O extends OrganizationOptions>(
options?: O | undefined,
): OrganizationPlugin<O>;
}
/**
* Organization plugin for Better Auth. Organization allows you to create teams, members,
* and manage access control for your users.