---
url: https://lit-ui-router.dev/api/reference/types/TypedLitViewDeclaration.md
---
[lit-ui-router](../index.md) / TypedLitViewDeclaration

# Type Alias: TypedLitViewDeclaration\<T>

```ts
type TypedLitViewDeclaration<T> = 
  | TypedLitViewComponent<T> & _ViewDeclaration
  | _ViewDeclaration & {
  component: TypedLitViewComponent<T>;
};
```

Defined in: [packages/lit-ui-router/src/interface.ts:463](https://github.com/simshanith/lit-ui-router/blob/1cd954559604dabdcb4d0a419ac42b07b38f0fba/packages/lit-ui-router/src/interface.ts#L463)

A view declaration as a [TypedLitStateDeclaration](TypedLitStateDeclaration.md) checks it: a bare
[TypedLitViewComponent](TypedLitViewComponent.md), or an object with one as its `component`.

## Type Parameters

| Type Parameter | Default type |
| ------ | ------ |
|  `T` *extends* [`DefaultResolvesType`](DefaultResolvesType.md) | [`DefaultResolvesType`](DefaultResolvesType.md) |
