@prismshadow/penguin-core/kernel · Manifest & Static Verification

closedShape

function low-level
Source ↗
IMPORT import { closedShape } from "@prismshadow/penguin-core/kernel";

An 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 | null

Parameters & Return

table

TableLike

key

string

@returns

string | null