Skip to content

Commit

Permalink
fix: update todomvc to newer syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
TylorS committed Feb 29, 2024
1 parent 5d29269 commit a584097
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/todomvc/src/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ export type CreateTodo = Context.Fn.Context<typeof CreateTodo>

/* #region Model */

export const TodoList = RefSubject.tagged<never, Domain.TodoList>()("TodoList")
export const TodoList = RefSubject.tagged<Domain.TodoList>()("TodoList")
export type TodoList = RefSubject.Identifier<typeof TodoList>

export const FilterState = RefSubject.tagged<never, Domain.FilterState>()("FilterState")
export const FilterState = RefSubject.tagged<Domain.FilterState>()("FilterState")
export type FilterState = RefSubject.Identifier<typeof FilterState>

export const TodoText = RefSubject.tagged<never, string>()("TodoText")
export const TodoText = RefSubject.tagged<string>()("TodoText")
export type TodoText = RefSubject.Identifier<typeof TodoText>

export const Todos: RefSubject.Computed<Domain.TodoList, never, TodoList | FilterState> = RefSubject.map(
Expand Down

0 comments on commit a584097

Please sign in to comment.