1 / 5 · Welcome

Every problem is a question the world is asking.

Zetema (ζήτημα, Greek for “a thing sought”) gathers real problems people want solved, from public pages around the world. Builders find something worth building, and anyone living with a problem can share it, no coding needed.

← Back to the problem

The builder's path

Six steps from this problem to its solution.

For: TypeScript developers can't make a module or namespace promise it has a set of exports matching an interface.

“The true creator is necessity, which is the mother of our invention.”
Plato · Republic II, 369c (tr. B. Jowett)

Written for this problem

The path

  1. Ask the people who live it

    Start with typeScript developers who write modules or namespaces that must match a shape, such as test doubles or framework page files. The sources leave these open:

    • Should the check cover all declarations of a namespace spread across several files, or only the block with the clause?
    • How do people who write these shape-constrained modules want errors reported?
    • Do developers using JavaScript first need a way to declare the shape without changing to TypeScript syntax?
  2. Talk to TypeScript team on GitHub (microsoft/TypeScript issues)

    The public issue tracker is where the open questions about namespaces and external modules are discussed and where the design can be proposed.

    • ESLint maintainers (eslint/eslint discussions): They can advise on whether a shape check fits as a lint rule for teams that do not want to change compiler behaviour.
  3. Get the data

    Start from what is already published.

  4. Prototype: Shape-check lint rule prototype

    Build an ESLint or TypeScript language-service plugin that reads an interface named in a comment or clause and reports missing or mistyped exports in the module file. Test it on test doubles and framework page files first.

  5. Prototype: Compile-time shape checker for JavaScript-first teams

    Write a small CLI that checks a JavaScript module against a .d.ts interface during CI, so teams can enforce a shape without switching syntax. Compare error output formats with a few developers before settling on one.

  6. Test it with the people affected

    It is solved when: A developer can write one line at the top of a module that names an interface, and the compiler fails the build if any required export is missing or has the wrong type.

Routes to a solution

Six ways to take this forward

Each route is a different kind of journey, with real people and organisations to contact at each step, starting with those in every country.

  1. Step 1

    Build in the open

    Publish the code and invite contributors from the community.

  2. Step 2

    Fund the maintainers

    Sponsors, collectives and open source grants.

  3. Step 3

    Get it adopted

    Civic tech groups and public bodies take it up.

What this problem needs

Ideas, sources and tools for this problem, from first interviews to funding.

  • Web
  • Open data
  • Support and funding

Ideas to explore

  • Idea 1Shape-check lint rule prototypeBuild an ESLint or TypeScript language-service plugin that reads an interface named in a comment or clause and reports missing or mistyped exports in the module file. Test it on test doubles and framework page files first.
  • Idea 2Compile-time shape checker for JavaScript-first teamsWrite a small CLI that checks a JavaScript module against a .d.ts interface during CI, so teams can enforce a shape without switching syntax. Compare error output formats with a few developers before settling on one.

Specific to this problem

Talk to first

  • TypeScript team on GitHub (microsoft/TypeScript issues)

    The public issue tracker is where the open questions about namespaces and external modules are discussed and where the design can be proposed.

  • ESLint maintainers (eslint/eslint discussions)

    They can advise on whether a shape check fits as a lint rule for teams that do not want to change compiler behaviour.

Starter prompt

Built from this problem's brief. Paste it into Claude or any AI assistant.

Help me design and build a first working prototype for this problem in Anywhere.

Problem: TypeScript developers can't make a module or namespace promise it has a set of exports matching an interface.
Who it hurts: TypeScript developers who write modules or namespaces that must match a shape, such as test doubles or framework page files
The moment it hurts: A module that is supposed to match a shape can drift from it, and the compiler does not report a mismatch at the module itself.
What people do today: People write singleton classes instead, or check the shape by assigning the module to a typed constant or default export.
Why it is still unsolved: The source shows the syntax was approved for internal modules years ago, but later discussion shows open questions about merged declarations, namespaces and external modules that were not settled.
What solved looks like: A developer can write one line at the top of a module that names an interface, and the compiler fails the build if any required export is missing or has the wrong type.
Where: Anywhere

First, list what you would need to learn from the people affected before building, as interview questions.
Then propose the simplest version that would help, the screens or messages it needs, and the data it would use.
Keep it cheap to run, accessible, and respectful of people's privacy. Flag anything you are unsure about instead of guessing.
  1. Understand it

    Talk to the people who live it before you build.

    “Truth is one; the wise speak of it in many ways.”

    एकं सद्विप्रा बहुधा वदन्ति

    ekaṃ sad viprā bahudhā vadanti

    Ṛgveda · 1.164.46
  2. Prototype with AI

    Get a working version in front of people fast.

    Using AI is not cheating. Every tool carries the work of the people who made it, and using it well is how knowledge has always moved forward. The thinking, the care for the people who live the problem, and the judgement are still yours.

    “The Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves.”
    Ada Lovelace · Notes on Menabrea's Sketch of the Analytical Engine, Note A (1843)
  3. Find the data

    Open data that fits this problem.

    “The first principle is that you must not fool yourself, and you are the easiest person to fool.”
    Richard Feynman · Cargo Cult Science, Caltech commencement address (1974)
  4. Build it

    Tools matched to what this problem needs.

    “Keep moving, keep moving.”

    चरैवेति चरैवेति

    caraiveti caraiveti

    Aitareya Brāhmaṇa · 7.15
  5. Launch and get support

    Ship it responsibly, and find help and funding.

    “Act, keeping in view the welfare of the world.”

    लोकसंग्रहमेवापि सम्पश्यन्कर्तुमर्हसि

    lokasaṅgraham evāpi sampaśyan kartum arhasi

    Bhagavad Gītā · 3.20

Kit generated with claude-haiku-5-5; every link was checked when it was made. Links go to each provider's own site. Zetema is not paid for any listing.

Take it to someone

Ready to send, with the sources in place

Built from this problem's evidence. Fill in the [brackets], make it yours, and send it. Read every line first: it goes out under your name.

Ask someone who knows this problem for 20 minutes.