---
url: /api/kiln/interfaces/Resource.md
---
[Kiln API](../../index.md) / [kiln](../index.md) / Resource

# Interface: Resource\<T>

A singleton value owned by the app: input, RNG, score, config.

## Extended by

* [`State`](State.md)

## Type Parameters

| Type Parameter | Default type |
| ------ | ------ |
| `T` | `unknown` |

## Properties

| Property | Modifier | Type | Description |
| ------ | ------ | ------ | ------ |
|  `[$resource]` | `readonly` | `true` | - |
|  `create` | `readonly` | (`app`) => `T` | - |
|  `opaque` | `readonly` | `boolean` | Skip the dev read-only proxy (for Three.js objects and other class graphs). |
|  `name` | `readonly` | `string` | Name used in errors, snapshots and `kiln describe`. |

## Methods

### named()

```ts
named(name): this;
```

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `name` | `string` |

#### Returns

`this`
