Skip to content

Commit

Permalink
Add a convenience trait instead of a type alias
Browse files Browse the repository at this point in the history
  • Loading branch information
pomadchin committed May 18, 2021
1 parent cca20b1 commit 39476f4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ lazy val commonSettings = Seq(
git.gitDescribedVersion.value.get
},
scalaVersion := "2.12.13",
crossScalaVersions := List("2.12.13", "2.13.5"),
crossScalaVersions := List("2.12.13", "2.13.6"),
Global / cancelable := true,
scalafmtOnCompile := true,
ThisBuild / scapegoatVersion := Versions.Scapegoat,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package com.azavea.stac4s.api.client

trait StacClient[F[_]] extends StacClientF[F, SearchFilters]
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.azavea.stac4s.api

package object client {
type StacClient[F[_]] = StacClientF[F, SearchFilters]
type SttpStacClient[F[_]] = SttpStacClientF[F, SearchFilters]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package com.azavea.stac4s.api.client

trait StacClient[F[_]] extends StacClientF[F, SearchFilters]
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.azavea.stac4s.api

package object client {
type StacClient[F[_]] = StacClientF[F, SearchFilters]
type SttpStacClient[F[_]] = SttpStacClientF[F, SearchFilters]
}

0 comments on commit 39476f4

Please sign in to comment.