Public
Script
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { Recipe } from "https://esm.town/v/tmcw/Recipe";
export class Glass {
name: string;
path: string;
links: Recipe[];
constructor(name: string, path: string) {
this.name = name;
this.path = path;
this.links = [];
}
link(recipe: Recipe) {
this.links.push(recipe);
}
}
November 16, 2023