mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-22 22:32:01 -05:00
fix: type
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user