# Variable: habit

```ts
const habit: object & Typed<{
  name: string;
  position?: string;
  schedule?: string;
  target?: number;
  unit?: string;
}>;
```

Defined in: [packages/core/src/schemas/library/planning.ts:213](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/library/planning.ts#L213)

A habit to keep. Check-ins are `about` it.

## Type Declaration

### description

```ts
readonly description: "Something to do regularly." = 'Something to do regularly.';
```

### name

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

### schema

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

#### schema.properties

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

#### schema.properties.name

```ts
readonly name: object;
```

#### schema.properties.name.maxLength

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

#### schema.properties.name.minLength?

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

#### schema.properties.name.type

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

#### schema.properties.position

```ts
readonly position: object & object;
```

##### Type Declaration

###### maxLength

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

###### minLength?

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

###### type

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

###### x-kind

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

#### schema.properties.schedule

```ts
readonly schedule: object;
```

#### schema.properties.schedule.maxLength

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

#### schema.properties.schedule.minLength?

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

#### schema.properties.schedule.type

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

#### schema.properties.target

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

#### schema.properties.target.description

```ts
readonly description: "How much a day counts as done" = 'How much a day counts as done';
```

#### schema.properties.target.minimum

```ts
readonly minimum: 0 = 0;
```

#### schema.properties.target.type

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

#### 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 ["name"];
```

#### schema.type

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

### title

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