closedShape
function low-levelAn interface's CLOSED shape, as one canonical string: its declaration plus every interface and named data type it reaches through the table, keys sorted. Two builds that print the same string mean the same thing by the interface, all the way down.
This is equality, where satisfies is assignability — and equality is what a
value BOTH sides read and write needs: one-way assignability lets the reader accept what
the writer is about to break. It also needs no second table, so a predecessor can leave
its string next to the value and a successor can compare it against its own.
Declaration
export function closedShape(table: TableLike, key: string): string | nullParameters & Return
table
TableLikekey
string@returns
string | null