Compare commits
2 commits
9988222528
...
7203b8f6b2
Author | SHA1 | Date | |
---|---|---|---|
7203b8f6b2 | |||
93818a519c |
1 changed files with 3 additions and 6 deletions
|
@ -1,5 +1,7 @@
|
||||||
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",
|
||||||
|
@ -10,9 +12,4 @@ 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);
|
|
Reference in a new issue