# core/formatters/learning.formatter.ts

> 9 lines of code and 1 definition.

Tree: Bane's Lab Build Scripts
Language: typescript
Layer: processing
Canonical: https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-formatters-learning-formatter-ts
Source text: https://banes-lab.com/source/build-scripts/core/formatters/learning.formatter.ts.txt

Listed in [core/formatters](https://banes-lab.com/api/source/build-scripts/core/formatters.md), after [core/formatters/index.formatter.ts](https://banes-lab.com/source/build-scripts/core/formatters/index.formatter.ts.md) and before [core/formatters/link.formatter.ts](https://banes-lab.com/source/build-scripts/core/formatters/link.formatter.ts.md).

## Definitions

- `renderLearning` (lexical_declaration, line 3, exported)

## Contained in

- [core/formatters](https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-formatters.md)

## Used by

- [core/coordinators/learning.coordinator.ts](https://banes-lab.com/source/build-scripts/core/coordinators/learning.coordinator.ts.md)

## Linked from

- [core/coordinators](https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-coordinators.md)

## Source

```typescript
import type { Block } from "#types/learning.types";

export const renderLearning = function renderLearning(blocks: readonly Block[]): string {
    return [
        'import type { LearningBlock } from "#types/learning.types";',
        "",
        `export const LEARNING: readonly LearningBlock[] = JSON.parse(${JSON.stringify(JSON.stringify(blocks))});`,
        "",
    ].join("\n");
};
```
