🚧 Wrestling with TypeScript
This commit is contained in:
parent
f4d2785972
commit
2dbebb87d6
7 changed files with 16 additions and 22 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue