We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ed6abd commit 5d1fcbbCopy full SHA for 5d1fcbb
src/index.ts
@@ -8,12 +8,19 @@ export interface ProbotAuth {
8
hook: State["auth"]["hook"];
9
}
10
11
-export function createProbotAuth(options: StrategyOptions): ProbotAuth {
+export interface createProbotAuth {
12
+ (options: StrategyOptions): ProbotAuth;
13
+ VERSION: string;
14
+}
15
+
16
+function createProbotAuthFn(options: StrategyOptions): ProbotAuth {
17
const state: State = getState(options);
18
19
return Object.assign(auth.bind(null, state), {
20
hook: state.auth.hook,
21
});
22
23
-createProbotAuth.VERSION = VERSION;
24
+createProbotAuthFn.VERSION = VERSION;
25
26
+export const createProbotAuth: createProbotAuth = createProbotAuthFn;
0 commit comments