fix: type

This commit is contained in:
Alex Yang
2026-01-07 14:17:25 +08:00
parent 62ac150025
commit 8b9ba20b99
@@ -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: typeof organization;
creator: OrganizationPluginCreator;
};
}
}
@@ -295,6 +295,12 @@ 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.