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
// store/todo/addTodo.ts | |
import {Reducer} from 'redux' | |
import {Action} from 'store/redux' // our fancy new generic type! | |
interface Todo { | |
id: number | |
text: string | |
completed: boolean | |
} |
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
// store/todo/addTodo.ts | |
import {Reducer} from 'redux' | |
import {Action} from 'store/redux' // our fancy new generic type! | |
interface Todo { | |
id: number | |
text: 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
// store/redux.d.ts | |
import {Action as ReduxAction} from 'redux' | |
export interface Action< | |
T extends string, | |
P = undefined | |
> extends ReduxAction { | |
type: T | |
payload: P |
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
local ret_status="%(?:%{$fg_bold[green]%}$ :%{$fg_bold[red]%}$ %s)" | |
PROMPT='%{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info) ${ret_status}%{$fg_bold[blue]%}% %{$reset_color%}' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[red]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}%{$fg[yellow]%}*%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%}" |
NewerOlder