You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importtype{NormalizedPrototype}from'promidas/types';functionrender(prototype: NormalizedPrototype): string{consttags=prototype.tags.join(', ');consttitle=prototype.prototypeNm;constcreated=prototype.createDate;// already UTC ISO stringreturn`${title} (${tags}) at ${created}`;}
Optional fields
functiongetReleaseDate(prototype: NormalizedPrototype): string|undefined{returnprototype.releaseDate;// may be undefined when not provided upstream}
importtype{NormalizedPrototype}from'promidas/types';functionuseSnapshot(data: readonlyNormalizedPrototype[]): void{// data is readonly; mutations are compile-time errorsconsole.log(data.length);}
Notes
Types are compile-time only; importing them adds no runtime cost.
Normalization (pipe-split, UTC conversion) happens in the fetcher; these types
reflect the post-normalization shape.
For label/lookups, pair code unions with the utils converters
(promidas/utils).