# Variable: goal

```ts
const goal: object & Typed<{
  body?: string;
  closesAt?: string;
  target: number;
  title: string;
  unit: string;
}>;
```

Defined in: [packages/core/src/schemas/library/community.ts:180](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/library/community.ts#L180)

Something the group reaches together, a unit at a time: "40 people", "5000
NOK", "100 hours". People pledge toward it; `std.goal-reached` proves it.

## Type Declaration

### description

```ts
readonly description: "A target the group reaches together, pledge by pledge." = 'A target the group reaches together, pledge by pledge.';
```

### name

```ts
readonly name: "std.goal" = 'std.goal';
```

### rules

```ts
readonly rules: object;
```

#### rules.fixed

```ts
readonly fixed: readonly ["target", "unit"];
```

### schema

```ts
readonly schema: object;
```

#### schema.properties

```ts
readonly properties: object;
```

#### schema.properties.body

```ts
readonly body: object;
```

#### schema.properties.body.maxLength

```ts
maxLength: number = max;
```

#### schema.properties.body.minLength?

```ts
minLength?: number = min;
```

#### schema.properties.body.type

```ts
type: "string";
```

#### schema.properties.closesAt

```ts
readonly closesAt: object & object;
```

##### Type Declaration

###### maxLength

```ts
maxLength: number = max;
```

###### minLength?

```ts
minLength?: number = min;
```

###### type

```ts
type: "string";
```

###### x-kind

```ts
readonly "x-kind": "when";
```

#### schema.properties.target

```ts
readonly target: object;
```

#### schema.properties.target.maximum?

```ts
maximum?: number = max;
```

#### schema.properties.target.minimum

```ts
minimum: number = min;
```

#### schema.properties.target.type

```ts
type: "integer";
```

#### schema.properties.title

```ts
readonly title: object;
```

#### schema.properties.title.maxLength

```ts
maxLength: number = max;
```

#### schema.properties.title.minLength?

```ts
minLength?: number = min;
```

#### schema.properties.title.type

```ts
type: "string";
```

#### schema.properties.unit

```ts
readonly unit: object;
```

#### schema.properties.unit.maxLength

```ts
maxLength: number = max;
```

#### schema.properties.unit.minLength?

```ts
minLength?: number = min;
```

#### schema.properties.unit.type

```ts
type: "string";
```

#### schema.required

```ts
readonly required: readonly ["title", "target", "unit"];
```

#### schema.type

```ts
readonly type: "object" = 'object';
```

### title

```ts
readonly title: "Goal" = 'Goal';
```
