Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit 0dfc84b

Browse files
committed
Export function overloads
1 parent 8a19bf9 commit 0dfc84b

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

packages/core/src/index.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,21 @@ import { CallbackFunction, CheckOptions, CheckResult } from '@version-checker/ap
22
import check from './check'
33

44
/**
5-
* The exported checking function.
5+
* Performs the update check.
66
*
77
* @param options The options for the version check.
8-
* @param callback An optional callback to pass the result to.
9-
* Can be omitted to return a Promise.
8+
* @returns {Promise<CheckResult>}
109
*/
10+
function versionCheck(options: CheckOptions): Promise<CheckResult>
11+
12+
/**
13+
* Performs the update check.
14+
*
15+
* @param options The options for the version check.
16+
* @param callback A callback which receives the error or the result.
17+
*/
18+
function versionCheck(options: CheckOptions, callback: CallbackFunction): undefined
19+
1120
function versionCheck(
1221
options: CheckOptions,
1322
callback?: CallbackFunction

0 commit comments

Comments
 (0)