Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Commit

Permalink
TINY-10394: Fixed promise return value
Browse files Browse the repository at this point in the history
  • Loading branch information
spocke committed Nov 27, 2023
1 parent 32c7913 commit 2c892bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/ts/api/VersionLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,8 @@ export const sSetupVersion = <T, U>(version: string, testPlugins: string[], call

export const sWithVersion = TinyVersions.sWithVersion;

export const pLoadVersion = (version: string): Promise<void> => new Promise((resolve, reject) => Loader.load(version, resolve, reject));
export const pLoadVersion = (version: string): Promise<void> => {
return new Promise((resolve, reject) => {
Loader.load(version, resolve, reject);
});
};

0 comments on commit 2c892bf

Please sign in to comment.