Skip to content

Commit

Permalink
Missed that this no longer needs a promise!
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicScrewdriver committed Nov 7, 2024
1 parent efa9cfb commit fa98083
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/perseus/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,11 @@ import * as Widgets from "./widgets";
* needed via `loadExtraWidgets`. It is idempotent, so it's not a problem to
* call it multiple times.
*/
const init = function (): Promise<undefined> {
const init = function () {
Widgets.registerWidgets(basicWidgets);
Widgets.registerWidgets(extraWidgets);

Widgets.replaceDeprecatedWidgets();

// @ts-expect-error - TS2322 - Type 'Promise<void>' is not assignable to type 'Promise<undefined>'.
return Promise.resolve();
};

export default init;

0 comments on commit fa98083

Please sign in to comment.