Skip to content

Commit

Permalink
feat: update exported type def
Browse files Browse the repository at this point in the history
  • Loading branch information
megheaiulian committed Jan 11, 2024
1 parent d90c8a5 commit 158ce6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/router.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { nothing } from 'lit-html';

Check warning on line 1 in src/router.ts

View workflow job for this annotation

GitHub Actions / build / build

'lit-html' should be listed in the project's dependencies. Run 'npm i -S lit-html' to add it
import type { DirectiveResult } from 'lit-html/directive.js';
import { guard, GuardDirective } from 'lit-html/directives/guard.js';
import { guard } from 'lit-html/directives/guard.js';

Check warning on line 2 in src/router.ts

View workflow job for this annotation

GitHub Actions / build / build

'lit-html' should be listed in the project's dependencies. Run 'npm i -S lit-html' to add it
import { until } from 'lit-html/directives/until.js';

Check warning on line 3 in src/router.ts

View workflow job for this annotation

GitHub Actions / build / build

'lit-html' should be listed in the project's dependencies. Run 'npm i -S lit-html' to add it
import { component } from '@pionjs/pion';

Expand All @@ -12,7 +11,7 @@ interface Props {
}
interface RouterT extends HTMLElement, Props {}

const Router = (host: RouterT): DirectiveResult<typeof GuardDirective> => {
const Router = (host: RouterT) => {
const routes: Route[] = host.routes,
{ route, result } = useRouter(routes);

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"allowSyntheticDefaultImports": true,
"noEmit": true,
"module": "esnext",
"moduleResolution": "node",
"moduleResolution": "bundler",
"strict": true,
"target": "esnext",
"allowJs": true
Expand Down

0 comments on commit 158ce6d

Please sign in to comment.