Expose (@atom-forge/expose) is a small TypeScript library that decides what leaves the server: nothing goes to the client unless a view names it. When a table gets a new column, that column stays on the server until someone adds it to a view, and the compiler knows the exact shape of what went out.
flowchart LR
R[Database row] --> P1[View: identity]
P1 --> P2[View: contact]
P2 --> O[Output for the client]
It has no dependencies and works with any database layer or transport, because a view is a plain function.
Who this book is for
TypeScript developers who return database rows from a server to a client and want a new column to stay private by default. Basic TypeScript generics help, but only for writing views that add to a key.
Expose
Expose (
@atom-forge/expose) is a small TypeScript library that decides what leaves the server: nothing goes to the client unless a view names it. When a table gets a new column, that column stays on the server until someone adds it to a view, and the compiler knows the exact shape of what went out.It has no dependencies and works with any database layer or transport, because a view is a plain function.
Who this book is for
TypeScript developers who return database rows from a server to a client and want a new column to stay private by default. Basic TypeScript generics help, but only for writing views that add to a key.
Reading guide