Skip to content

Commit 5d1fcbb

Browse files
committed
fix: workaround JSR expando properties limitation
1 parent 6ed6abd commit 5d1fcbb

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Diff for: src/index.ts

+9-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,19 @@ export interface ProbotAuth {
88
hook: State["auth"]["hook"];
99
}
1010

11-
export function createProbotAuth(options: StrategyOptions): ProbotAuth {
11+
export interface createProbotAuth {
12+
(options: StrategyOptions): ProbotAuth;
13+
VERSION: string;
14+
}
15+
16+
function createProbotAuthFn(options: StrategyOptions): ProbotAuth {
1217
const state: State = getState(options);
1318

1419
return Object.assign(auth.bind(null, state), {
1520
hook: state.auth.hook,
1621
});
1722
}
1823

19-
createProbotAuth.VERSION = VERSION;
24+
createProbotAuthFn.VERSION = VERSION;
25+
26+
export const createProbotAuth: createProbotAuth = createProbotAuthFn;

0 commit comments

Comments
 (0)