---
url: >-
  https://lit-ui-router.dev/api/ui-router-registry/index/interfaces/RegisteredStates.md
---
[ui-router-registry](../../index.md) / [ui-router-registry](../index.md) / RegisteredStates

# Interface: RegisteredStates

Defined in: [registry.ts:51](https://github.com/simshanith/lit-ui-router/blob/8dfa5311c31f98b310587e91545f253f0bd348c4/packages/ui-router-registry/src/registry.ts#L51)

The app's state declarations keyed by name, filled in by module
augmentation. Each module registers its own `as const` table, lazy modules
included, and a file that imports none of them still sees every name:

```ts
declare module 'ui-router-registry' {
  interface RegisteredStates extends StatesOf<typeof contactsStates> {}
}
```

A class-declared state can be registered by hand:
`interface RegisteredStates { about: typeof AboutState }`.
