Front : create class to connect, send and receive message
- Create environment class - Create Connexion class to connect and save data - Refactor back api
This commit is contained in:
parent
b4f77ba51a
commit
7e08e7f133
8 changed files with 374 additions and 5 deletions
|
@ -6,7 +6,7 @@ export class Point implements PointInterface{
|
|||
y: number;
|
||||
|
||||
constructor(x : number, y : number) {
|
||||
if(!x || !y){
|
||||
if(x === null || y === null){
|
||||
throw Error("position x and y cannot be null");
|
||||
}
|
||||
this.x = x;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue