Skip to content

Commit

Permalink
Fix type name conflict with Logux Core
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Aug 6, 2024
1 parent 44a1c2b commit 22ba3bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base-server/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export type SendBackActions =
* @param client Client object.
* @returns `true` if credentials was correct
*/
interface Authenticator<Headers extends object> {
interface ServerAuthenticator<Headers extends object> {
(user: AuthenticatorOptions<Headers>): boolean | Promise<boolean>
}

Expand Down Expand Up @@ -800,7 +800,7 @@ export class BaseServer<
*
* @param authenticator The authentication callback.
*/
auth(authenticator: Authenticator<Headers>): void
auth(authenticator: ServerAuthenticator<Headers>): void

/**
* Define the channel.
Expand Down

0 comments on commit 22ba3bb

Please sign in to comment.