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:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
- dev
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
- dev
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { ComponentType } from "react";
|
||||||
|
|
||||||
import { makeLazy } from "./lazy";
|
import { makeLazy } from "./lazy";
|
||||||
|
|
||||||
const NoopComponent = () => null;
|
const NoopComponent = () => null;
|
||||||
|
@ -23,5 +25,5 @@ export function LazyComponent<T extends object = any>(factory: () => React.Compo
|
||||||
|
|
||||||
LazyComponent.$$get = get;
|
LazyComponent.$$get = get;
|
||||||
|
|
||||||
return LazyComponent;
|
return LazyComponent as ComponentType<T>;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue