diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 46d56418..a756681c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,9 +3,11 @@ on: push: branches: - main + - dev pull_request: branches: - main + - dev jobs: test: runs-on: ubuntu-latest diff --git a/src/utils/lazyReact.tsx b/src/utils/lazyReact.tsx index e45ca079..da36d4e7 100644 --- a/src/utils/lazyReact.tsx +++ b/src/utils/lazyReact.tsx @@ -4,6 +4,8 @@ * SPDX-License-Identifier: GPL-3.0-or-later */ +import { ComponentType } from "react"; + import { makeLazy } from "./lazy"; const NoopComponent = () => null; @@ -23,5 +25,5 @@ export function LazyComponent(factory: () => React.Compo LazyComponent.$$get = get; - return LazyComponent; + return LazyComponent as ComponentType; }