1
0
Fork 0

🚧 Wrestling with TypeScript

This commit is contained in:
Joost De Cock 2018-07-22 20:43:42 +02:00
parent f4d2785972
commit 2dbebb87d6
7 changed files with 16 additions and 22 deletions

View file

@ -14,7 +14,7 @@ export class Point {
}
/** Adds an attribute. This is here to make this call chainable in assignment */
attr(name, value): Point {
attr(name: string, value: string): Point {
this.attributes.add(name, value);
return this;