Import TypeScript types
A types.ts is often the only description a team has of its data. Apiome now imports the exported
interface, type and enum declarations of a TypeScript module as catalog schema types.
What gets imported.
- Read by the TypeScript compiler. References resolve across
import typeand re-exports, andPick,Omit,Partial, indexed access andkeyofbecome the shape the compiler computes. - Modules and sets. Upload one
.tsor.d.tsfile, paste the source, or upload an archive of modules that import one another. - Generics where they are used.
type OrderPage = Page<Order>becomes a concrete record. - Nothing becomes
any. Conditional, mapped and template-literal types, uninstantiated generics and merged interfaces are listed in the coverage ledger instead of being guessed.
