Peruse demofeat: add demo workspacebf07121
example.ts237 B · typescript
export interface Greeting {
  message: string;
  recipient: string;
}

export function greet({message, recipient}: Greeting): string {
  return `${message}, ${recipient}!`;
}

console.log(greet({message: "Hello", recipient: "Peruse"}));