---
url: >-
  https://lit-ui-router.dev/v1/reference/ui-router-registry/index/interfaces/TypedStateService.md
---
[ui-router-registry](../../index.md) / [ui-router-registry](../index.md) / TypedStateService

# Interface: TypedStateService

Defined in: registry.ts:414

A typed view of core's `StateService`. It is assignable both ways: core's
class fills a typed getter or field with no cast and emits nothing, and the
view passes wherever a `StateService` is expected.

## Extends

* [`StateService`](https://ui-router.github.io/core/docs/latest/classes/_state_stateservice_.stateservice.html)

## Methods

### go()

```ts
go<T>(to, ...args): TransitionPromise;
```

Defined in: registry.ts:416

`StateService.go`, with a registered name's params required as declared.

#### Type Parameters

| Type Parameter |
| ------ |
|  `T` *extends* | `string` | [`UncheckedRef`](../type-aliases/UncheckedRef.md) | [`StateDeclaration`](https://ui-router.github.io/core/docs/latest/interfaces/_state_interface_.statedeclaration.html) | `StateObject` |

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `to` | `T` & `CheckRelative`<`T`> |
| ...`args` | [`TargetArgs`](../type-aliases/TargetArgs.md)<`T`, [`TransitionOptions`](https://ui-router.github.io/core/docs/latest/interfaces/_transition_interface_.transitionoptions.html)> |

#### Returns

`TransitionPromise`

#### Overrides

`StateService.go`

***

### href()

```ts
href<T>(stateOrName, ...args): string;
```

Defined in: registry.ts:434

`StateService.href`, typed as for `go`.

#### Type Parameters

| Type Parameter |
| ------ |
|  `T` *extends* | `string` | [`UncheckedRef`](../type-aliases/UncheckedRef.md) | [`StateDeclaration`](https://ui-router.github.io/core/docs/latest/interfaces/_state_interface_.statedeclaration.html) | `StateObject` |

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `stateOrName` | `T` & `CheckRelative`<`T`> |
| ...`args` | [`TargetArgs`](../type-aliases/TargetArgs.md)<`T`, `HrefOptions`> |

#### Returns

`string`

#### Overrides

`StateService.href`

***

### includes()

#### Call Signature

```ts
includes<N>(
   stateOrName, 
   params?, 
   options?
): boolean;
```

Defined in: registry.ts:458

`StateService.includes`, over registered names, globs and their params.

##### Type Parameters

| Type Parameter |
| ------ |
|  `N` *extends* `string` |

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `stateOrName` | `string` | `N` |
| `params?` | `Partial`<[`RawParams`](https://ui-router.github.io/core/docs/latest/interfaces/_params_interface_.rawparams.html)> |
| `options?` | [`TransitionOptions`](https://ui-router.github.io/core/docs/latest/interfaces/_transition_interface_.transitionoptions.html) |

##### Returns

`boolean`

##### Overrides

`StateService.includes`

#### Call Signature

```ts
includes(
   stateOrName, 
   params?, 
   options?
): boolean;
```

Defined in: registry.ts:464

`StateService.includes` for an [UncheckedRef](../type-aliases/UncheckedRef.md) or an object target, with loose params.

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `stateOrName` | | [`UncheckedRef`](../type-aliases/UncheckedRef.md) | [`StateDeclaration`](https://ui-router.github.io/core/docs/latest/interfaces/_state_interface_.statedeclaration.html) | `StateObject` |
| `params?` | [`RawParams`](https://ui-router.github.io/core/docs/latest/interfaces/_params_interface_.rawparams.html) |
| `options?` | [`TransitionOptions`](https://ui-router.github.io/core/docs/latest/interfaces/_transition_interface_.transitionoptions.html) |

##### Returns

`boolean`

##### Overrides

`StateService.includes`

***

### is()

#### Call Signature

```ts
is<N>(
   stateOrName, 
   params?, 
   options?
): boolean;
```

Defined in: registry.ts:445

`StateService.is`, over registered names and their params.

##### Type Parameters

| Type Parameter |
| ------ |
|  `N` *extends* `string` |

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `stateOrName` | `N` |
| `params?` | `Partial`<[`RawParams`](https://ui-router.github.io/core/docs/latest/interfaces/_params_interface_.rawparams.html)> |
| `options?` | { `relative?`: | `string` | [`StateDeclaration`](https://ui-router.github.io/core/docs/latest/interfaces/_state_interface_.statedeclaration.html) | `StateObject`; } |
| `options.relative?` | | `string` | [`StateDeclaration`](https://ui-router.github.io/core/docs/latest/interfaces/_state_interface_.statedeclaration.html) | `StateObject` |

##### Returns

`boolean`

##### Overrides

`StateService.is`

#### Call Signature

```ts
is(
   stateOrName, 
   params?, 
   options?
): boolean;
```

Defined in: registry.ts:451

`StateService.is` for an [UncheckedRef](../type-aliases/UncheckedRef.md) or an object target, with loose params.

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `stateOrName` | | [`UncheckedRef`](../type-aliases/UncheckedRef.md) | [`StateDeclaration`](https://ui-router.github.io/core/docs/latest/interfaces/_state_interface_.statedeclaration.html) | `StateObject` |
| `params?` | [`RawParams`](https://ui-router.github.io/core/docs/latest/interfaces/_params_interface_.rawparams.html) |
| `options?` | { `relative?`: | `string` | [`StateDeclaration`](https://ui-router.github.io/core/docs/latest/interfaces/_state_interface_.statedeclaration.html) | `StateObject`; } |
| `options.relative?` | | `string` | [`StateDeclaration`](https://ui-router.github.io/core/docs/latest/interfaces/_state_interface_.statedeclaration.html) | `StateObject` |

##### Returns

`boolean`

##### Overrides

`StateService.is`

***

### reload()

```ts
reload(reloadState?): Promise<StateObject>;
```

Defined in: registry.ts:440

`StateService.reload`: a registered name, or an object target or [UncheckedRef](../type-aliases/UncheckedRef.md).

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `reloadState?` | | `string` | [`UncheckedRef`](../type-aliases/UncheckedRef.md) | [`StateDeclaration`](https://ui-router.github.io/core/docs/latest/interfaces/_state_interface_.statedeclaration.html) | `StateObject` |

#### Returns

`Promise`<`StateObject`>

#### Overrides

`StateService.reload`

***

### target()

```ts
target<T>(identifier, ...args): TargetState;
```

Defined in: registry.ts:428

`StateService.target`, typed as for `go`.

#### Type Parameters

| Type Parameter |
| ------ |
|  `T` *extends* | `string` | [`UncheckedRef`](../type-aliases/UncheckedRef.md) | [`StateDeclaration`](https://ui-router.github.io/core/docs/latest/interfaces/_state_interface_.statedeclaration.html) | `StateObject` |

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `identifier` | `T` & `CheckRelative`<`T`> |
| ...`args` | [`TargetArgs`](../type-aliases/TargetArgs.md)<`T`, [`TransitionOptions`](https://ui-router.github.io/core/docs/latest/interfaces/_transition_interface_.transitionoptions.html)> |

#### Returns

[`TargetState`](https://ui-router.github.io/core/docs/latest/classes/_state_targetstate_.targetstate.html)

#### Overrides

`StateService.target`

***

### transitionTo()

```ts
transitionTo<T>(to, ...args): TransitionPromise;
```

Defined in: registry.ts:422

`StateService.transitionTo`, typed as for `go`.

#### Type Parameters

| Type Parameter |
| ------ |
|  `T` *extends* | `string` | [`UncheckedRef`](../type-aliases/UncheckedRef.md) | [`StateDeclaration`](https://ui-router.github.io/core/docs/latest/interfaces/_state_interface_.statedeclaration.html) | `StateObject` |

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `to` | `T` & `CheckRelative`<`T`> |
| ...`args` | [`TargetArgs`](../type-aliases/TargetArgs.md)<`T`, [`TransitionOptions`](https://ui-router.github.io/core/docs/latest/interfaces/_transition_interface_.transitionoptions.html)> |

#### Returns

`TransitionPromise`

#### Overrides

`StateService.transitionTo`
