-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TS data verification #39
base: master
Are you sure you want to change the base?
Conversation
…erByFavoriteColor.
"merge updates to class into testing branch before PR is complete"
…-starter-lab into testing-branch
…-starter-lab into object-convert
@@ -0,0 +1,29 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this launch.json
file should be listed in your .gitignore
file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, I don't think I understand git versioning well enough to scrub the file from the git repo history. I did it once on a personal project, but scrubbed the entire repo. I'm afraid I'll screw something up if I try it here.
I did add the /vscode folder the gitignore though.
src/index.ts
Outdated
name: string | ||
favColor: string | ||
age: number |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all properties here should be readonly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
src/index.ts
Outdated
private _users: Readonly<Record<string, IUser>> | ||
|
||
constructor(seedData: Record<string, IUser> = {}) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't be a bad thing to define/export an IUsers
type. type IUser = Record<string, IUser>
only suggested here because we use this list as a type in several places.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
src/index.ts
Outdated
} | ||
|
||
addUser(user: IUser): IUser{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addUser(user: IUser): IUser{ | |
addUser(user: IUser): IUser { |
space ^^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like space is missing after return types on several methods. should fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
src/index.ts
Outdated
} | ||
|
||
searchUserByName(name: string): Array<IUser>{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ReadonlyArray
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
src/index.ts
Outdated
} | ||
|
||
searchUsersByFavoriteColor(color: string): Array<IUser>{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ReadonlyArray
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Ticket:
What this Does:
Media:
None
Testing