This commit is contained in:
V 2023-11-25 02:55:59 +01:00
parent 6bbf562ab6
commit ec16fd8741
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905
2 changed files with 5 additions and 1 deletions

View file

@ -3,9 +3,11 @@ on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
jobs:
test:
runs-on: ubuntu-latest

View file

@ -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>;
}