fix ci
This commit is contained in:
parent
6bbf562ab6
commit
ec16fd8741
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
@ -3,9 +3,11 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- main
|
||||
- dev
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- dev
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
@ -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<T extends object = any>(factory: () => React.Compo
|
|||
|
||||
LazyComponent.$$get = get;
|
||||
|
||||
return LazyComponent;
|
||||
return LazyComponent as ComponentType<T>;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue