What does this program print?

from Branded types
TypeScript 6 intermediate 2 min

What does this program print?

TypeScript
declare const brandKey: unique symbol;
type OrderId = string & { readonly [brandKey]: "OrderId" };

const orderId = "ord-9" as OrderId;
console.log(typeof orderId);
console.log(JSON.stringify(orderId));
Open in playground
Report an error