# Motherload imports typed YAML, JSONC, CSV and Markdown into TypeScript

Canonical source : [Motherload imports typed YAML, JSONC, CSV and Markdown into TypeScript](<https://sebastien.rigaux.be/en/tech-watch/links/motherload-imports-typed-yaml-jsonc-csv-and-markdown-into-typescript>)

Motherload lets you import data files as TypeScript modules **typed from their contents**. It supports TOML, YAML, JSONC, JSON5, CSV, TSV, Markdown, plain text and `.env` files; types appear in the editor, and `tsc` reports parsing errors with their locations.

Type-checking uses TypeScript 7.1 *content mappers*, currently in beta, and requires `--runExternalCode`. At runtime, a preload or plugin adapts the same imports for Node.js and a range of bundlers.

- Selected on : 2026-10-30

- Entry updated : 2026-11-07T20:32:37+0000

- Format : Tool

- Source language : EN

- Credit : Colin McDonnell

- Found via : [This week in React](<https://thisweekinreact.com/>)

Original resource : [Motherload imports typed YAML, JSONC, CSV and Markdown into TypeScript](<https://motherload.dev/>)

Tags : [TypeScript](<https://sebastien.rigaux.be/en/tech-watch/tags/typescript>) · [Developer Experience](<https://sebastien.rigaux.be/en/tech-watch/tags/developer-experience>) · [Node.js](<https://sebastien.rigaux.be/en/tech-watch/tags/nodejs>)

Available versions : [Français](<https://sebastien.rigaux.be/veille/liens/motherload-importe-yaml-jsonc-csv-et-markdown-types-dans-typescript>) · [English](<https://sebastien.rigaux.be/en/tech-watch/links/motherload-imports-typed-yaml-jsonc-csv-and-markdown-into-typescript>)

[Back to tech watch](<https://sebastien.rigaux.be/en/tech-watch>)
