# Function: get() (/jsdoc/pixi-vn/index/namespaces/RegisteredCharacters/functions/get)



\> **get**\<`T`, `T2`>(`id`): `T` | `undefined`

Defined in: [src/characters/decorators/RegisteredCharacters.ts:20](https://github.com/DRincs-Productions/pixi-vn/blob/11c55b5d212c6c7eaffb12776b3f83f4d38e1ede/src/characters/decorators/RegisteredCharacters.ts#L20)

is a function that returns the character by the id

## Type Parameters [#type-parameters]

### T [#t]

`T` = `CharacterInterface`

### T2 [#t2]

`T2` *extends* `string` = `string`

## Parameters [#parameters]

### id [#id]

`T2`

is the id of the character

## Returns [#returns]

`T` | `undefined`

the character

## Example [#example]

```ts
const liam = RegisteredCharacters.get('liam');
```
