Wrote some Typescript stuff