interface Counter { count: number; increment(): void; decrement(): void }
const c = createCounter()
c.increment()
c.count // β 1Interface method signatures declare both the function shape and ensure objects provide implementations.
Interfaces can include method signatures. Implement an object that satisfies the interface.
Challenge: Implement createPrintable(label, value) returning an object with a toString() method.
createPrintable('Name', 'Alice').toString() // β 'Name: Alice'