Skip to content

Commit 5ac8edc

Browse files
committed
Fix linting error
It was complaining about the unnecessary type assertion.
1 parent a71fc0e commit 5ac8edc

File tree

1 file changed

+2
-4
lines changed
  • packages/template-typescript-minimal/app

1 file changed

+2
-4
lines changed

packages/template-typescript-minimal/app/routes.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,15 @@
44
* SPDX-License-Identifier: BSD-3-Clause
55
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
7-
import loadable, {LoadableComponent} from '@loadable/component'
7+
import loadable from '@loadable/component'
88

99
const Home = loadable(() => import('./pages/home'))
1010

1111
const routes = [
1212
{
1313
path: '/__pwa-kit/start',
1414
exact: true,
15-
// Type assertion because otherwise we encounter this error:
16-
// Exported variable 'routes' has or is using name 'Props' from external module "./app/pages/home" but cannot be named.
17-
component: Home as LoadableComponent<unknown>
15+
component: Home
1816
}
1917
]
2018

0 commit comments

Comments
 (0)