1.8.0 • Published 7 years ago

kreivi v1.8.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago
type Id = String
type Title = String
type Count = Number
type Date = String

type Counter = {
  id:        Id,
  title:     Title,
  count:     Count,
  createdAt: Date,
  updatedAt: Date,
}

type Response<D> = Promise<{
  data: D,
  errors?: [
    message: String,
    locations: Array<{ line: Number, column: Number }>
  ],
}>

counters :: () -> Response<{ counters: Array<Counter> }>
counter :: Id -> Response<{ counter: Counter }>
createCounter :: { title: Title, count?: Count } -> Response<{ counter: Counter }>
updateCounterCount :: (Id, Count) -> Response<{ counter: Counter }>
updateCounterTitle :: (Id, Count) -> Response<{ counter: Counter }>
deleteCounter :: (Id) -> Response<{ counter: Counter }>
1.8.0

7 years ago

1.7.0

7 years ago

1.6.0

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago