# Variable: docBlock

```ts
const docBlock: object & Typed<{
  checked?: boolean;
  image?: {
     alt?: string;
     blob: {
        hash: string;
        key?: string;
        mime: string;
        name?: string;
        salt?: string;
        size: number;
     };
  };
  language?: string;
  mentions?: readonly string[];
  position?: string;
  text?: string;
  type:   | "quote"
     | "image"
     | "paragraph"
     | "heading1"
     | "heading2"
     | "heading3"
     | "bullet"
     | "numbered"
     | "todo"
     | "code"
     | "divider";
}>;
```

Defined in: [packages/core/src/schemas/library/publishing.ts:245](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/library/publishing.ts#L245)

One block of a document, in order by `position`. A nested list item or a
toggle's contents has a `parent` block.

## Type Declaration

### description

```ts
readonly description: "One block of a document: a paragraph, heading, list item, image…" = 'One block of a document: a paragraph, heading, list item, image…';
```

### links

```ts
readonly links: object;
```

#### links.in

```ts
readonly in: LinkDeclaration;
```

#### links.parent

```ts
readonly parent: LinkDeclaration;
```

### name

```ts
readonly name: "std.doc-block" = 'std.doc-block';
```

### schema

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

#### schema.properties

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

#### schema.properties.checked

```ts
readonly checked: object;
```

#### schema.properties.checked.description

```ts
readonly description: "For a todo" = 'For a todo';
```

#### schema.properties.checked.type

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

#### schema.properties.image

```ts
readonly image: object & object;
```

##### Type Declaration

###### properties

```ts
properties: object;
```

###### properties.alt

```ts
alt: object;
```

###### properties.alt.maxLength

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

###### properties.alt.minLength?

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

###### properties.alt.type

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

###### properties.blob

```ts
blob: object & object;
```

###### Type Declaration

###### properties

```ts
properties: object;
```

###### properties.hash

```ts
hash: object;
```

###### properties.hash.maxLength

```ts
maxLength: ... = 64;
```

###### properties.hash.minLength

```ts
minLength: ... = 64;
```

###### properties.hash.type

```ts
type: ...;
```

###### properties.key

```ts
key: object;
```

###### properties.key.maxLength

```ts
maxLength: ... = 22;
```

###### properties.key.minLength

```ts
minLength: ... = 22;
```

###### properties.key.type

```ts
type: ...;
```

###### properties.mime

```ts
mime: object;
```

###### properties.mime.maxLength

```ts
maxLength: ... = max;
```

###### properties.mime.minLength?

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

###### properties.mime.type

```ts
type: ...;
```

###### properties.name

```ts
name: object;
```

###### properties.name.maxLength

```ts
maxLength: ... = max;
```

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

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

###### properties.name.type

```ts
type: ...;
```

###### properties.salt

```ts
salt: object;
```

###### properties.salt.maxLength

```ts
maxLength: ... = 22;
```

###### properties.salt.minLength

```ts
minLength: ... = 22;
```

###### properties.salt.type

```ts
type: ...;
```

###### properties.size

```ts
size: object;
```

###### properties.size.minimum

```ts
minimum: ... = 0;
```

###### properties.size.type

```ts
type: ...;
```

###### required

```ts
required: readonly ["hash", "size", "mime"];
```

###### type

```ts
type: "object";
```

###### x-kind

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

###### required

```ts
required: readonly ["blob"];
```

###### type

```ts
type: "object";
```

###### x-kind

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

#### schema.properties.language

```ts
readonly language: object;
```

#### schema.properties.language.maxLength

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

#### schema.properties.language.minLength?

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

#### schema.properties.language.type

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

#### schema.properties.mentions

```ts
readonly mentions: object;
```

#### schema.properties.mentions.items

```ts
items: object & object;
```

##### Type Declaration

###### maxLength

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

###### minLength?

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

###### type

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

###### x-kind

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

#### schema.properties.mentions.maxItems

```ts
maxItems: number = max;
```

#### schema.properties.mentions.type

```ts
type: "array";
```

#### 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.text

```ts
readonly text: object;
```

#### schema.properties.text.maxLength

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

#### schema.properties.text.minLength?

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

#### schema.properties.text.type

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

#### schema.properties.type

```ts
readonly type: object;
```

#### schema.properties.type.enum

```ts
enum: (
  | "quote"
  | "image"
  | "paragraph"
  | "heading1"
  | "heading2"
  | "heading3"
  | "bullet"
  | "numbered"
  | "todo"
  | "code"
  | "divider")[];
```

#### schema.required

```ts
readonly required: readonly ["type"];
```

#### schema.type

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

### title

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

### topics

```ts
readonly topics: readonly ["mentions"];
```
