The builder's path
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.”
Written for this problem
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:
The public issue tracker is where the open questions about namespaces and external modules are discussed and where the design can be proposed.
Start from what is already published.
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.
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.
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
Each route is a different kind of journey, with real people and organisations to contact at each step, starting with those in every country.
Step 1
Build in the open
Publish the code and invite contributors from the community.
Let the people a free tool helps fund its maintainer directly.
Raise and spend money in the open for a community project.
Grants for open source that makes the internet better.
Network of civic tech groups in many countries; find the one near the problem.
Step 2
Fund the maintainers
Sponsors, collectives and open source grants.
Let the people a free tool helps fund its maintainer directly.
Raise and spend money in the open for a community project.
Grants for open source that makes the internet better.
Network of civic tech groups in many countries; find the one near the problem.
Step 3
Get it adopted
Civic tech groups and public bodies take it up.
Y Combinator's free course and co-founder matching.
Raise and spend money in the open for a community project.
Network of civic tech groups in many countries; find the one near the problem.
Volunteer data scientists working with social-sector organisations.
Ideas, sources and tools for this problem, from first interviews to funding.
Official reference for how modules and exports are declared and typed, useful background for the shape-matching question.
Official explanation of how namespaces and interfaces merge, relevant to the open question about multi-file namespaces.
The public issue tracker is where the open questions about namespaces and external modules are discussed and where the design can be proposed.
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.
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
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.”
Open data that fits this problem.
“The first principle is that you must not fool yourself, and you are the easiest person to fool.”
Tools matched to what this problem needs.
“Keep moving, keep moving.”
चरैवेति चरैवेति
caraiveti caraiveti
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
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
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.