# `syntax.type_parent_required`

Type has no base.

Area 2, [Values and types](../topics/values-and-types.md); not declinable; the next step is usually the agent's.

```jadpo
type BoxSize = {
    width: Int
}
```

```text
error: `BoxSize` needs a base type
 --> main.jadpo:1:16
  |
1 | type BoxSize = {
  |                ^ expected a base before `{`
  reason: Every type is written `type Name = Base { ... }`; the base says what it is built from, such as `Object`, `Enum`, `Input` or `Text`.
  next: Add the base before `{`, for example `type BoxSize = Object {` (agent)
  rule: syntax.type_parent_required
  help: https://jadpo.dev/docs/errors/syntax.type_parent_required

check failed: 1 error, 1 file
```
