Skip to content

Commit

Permalink
fix: useGeeTest hook was not exported properly #5
Browse files Browse the repository at this point in the history
  • Loading branch information
shahradelahi committed Jan 13, 2024
1 parent 68a732d commit 635a193
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-geetest-v4",
"version": "1.1.2",
"version": "1.1.3",
"description": "React library for GeeTest captcha v4 integration",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useGeeTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { GeeTest, GeeTestOverrideParams, GeeTestState, InitConfig } from '../interface';
import { GT4_JS } from '../Constants';

type UseGeeTestOptions = Omit<InitConfig, 'captchaId'>;
export type UseGeeTestOptions = Omit<InitConfig, 'captchaId'>;

type UseGeeTestReturns = {
captcha?: GeeTest;
Expand Down
3 changes: 3 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ export type {
GeeTestEventCallbacks,
};

export { useGeeTest } from './hooks/useGeeTest';
export type { UseGeeTestOptions } from './hooks/useGeeTest';

export default GeeTest;

0 comments on commit 635a193

Please sign in to comment.