Skip to content

Commit

Permalink
fix: change return type of load and loadSync
Browse files Browse the repository at this point in the history
  • Loading branch information
tada5hi committed Feb 7, 2023
1 parent c1f0350 commit 1613372
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/loader/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function registerLoader(test: any, loader?: Loader) : void {
manager.register(test);
}

export async function load(input: LocatorInfo | string) : Promise<unknown> {
export async function load(input: LocatorInfo | string) : Promise<any> {
const manager = useLoader();
if (typeof input === 'string') {
return manager.execute(input);
Expand All @@ -32,7 +32,7 @@ export async function load(input: LocatorInfo | string) : Promise<unknown> {
return manager.execute(buildLoaderFilePath(input));
}

export function loadSync(input: LocatorInfo | string) : unknown {
export function loadSync(input: LocatorInfo | string) : any {
const manager = useLoader();
if (typeof input === 'string') {
return manager.executeSync(input);
Expand Down

0 comments on commit 1613372

Please sign in to comment.