Skip to content

Instantly share code, notes, and snippets.

@elizabethvenner
Created January 27, 2019 12:29
A TypeScript teapot without the typing!
export class Teapot {
constructor(
private height,
private girth,
private handle,
private spout
) {}
isTeaReady(tea) {
if (tea.checkTeaIsBrewed()) {
return "TIP ME OVER AND POUR ME OUT!!";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment