Compare commits

..

No commits in common. "7203b8f6b2ff18c2e42b1463e522dae9e691b093" and "99882225280ce0d8277751d78d030255e1b2baff" have entirely different histories.

View file

@ -1,7 +1,5 @@
import { User } from "./types"; import { User } from "./types";
const text = "This is the new text";
function getFromDb(): User[] { function getFromDb(): User[] {
return [{ return [{
name: "kfir", name: "kfir",
@ -12,4 +10,9 @@ function sendError(error: string): void {
throw new Error(error); throw new Error(error);
// This is the new master // This is the new master
} }
console.log(text);
const data = getFromDb();
const name = data[0].name;
const email = data[0].email;
console.log(data);