main
V 12 months ago
parent 6bbf562ab6
commit ec16fd8741
No known key found for this signature in database
GPG Key ID: A1DC0CFB5615D905

@ -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…
Cancel
Save