function parse_git_branch() {
git branch 2> /dev/null | sed -n -e 's/^\* \(.*\)/[\1]/p'
}
setopt PROMPT_SUBST
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// interface ensure class instance shape. Notice that the interface includes the parameters of the constructor, not the properties | |
interface Vehicle { | |
make: string; | |
color: string; | |
doors: number; | |
accelerate(speed: number): string; | |
brake(): string; | |
turn(direction: 'left' | 'right'): string; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
// This file is required for VSCode to understand webpack aliases | |
"module": "es6", | |
"moduleResolution": "node", | |
"compilerOptions": { | |
"resolveJsonModule": true, | |
"jsx": "preserve", | |
"module": "commonjs", | |
"target": "es5", | |
"sourceMap": true, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.