Skip to content

Commit

Permalink
Merge pull request #20 from mblink/add-bigint-support
Browse files Browse the repository at this point in the history
Adding support for BigInt
  • Loading branch information
mrdziuban committed Apr 30, 2024
2 parents 1f0f526 + f151f7d commit 9d2d462
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ lazy val root = project.in(file("."))
.settings(
name := "scala-ts",
organization := "bondlink",
version := "0.15.1",
version := "0.15.2",
scalaVersion := scalaV,

Compile / doc / scalacOptions += "-skip-by-regex:^scalats\\.BuildInfo\\$$",
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/scalats/TsParser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ final class TsParser()(using override val ctx: Quotes) extends ReflectionUtils {
'{ TsModel.TypeParam(${ Expr(name) }) }
case '[io.circe.Json] => '{ TsModel.Json($typeName) }
case '[Byte] | '[Short] | '[Int] | '[Long] | '[Double] | '[Float] => '{ TsModel.Number($typeName) }
case '[BigDecimal] => '{ TsModel.BigNumber($typeName) }
case '[BigDecimal] | '[BigInt] => '{ TsModel.BigNumber($typeName) }
case '[Boolean] => '{ TsModel.Boolean($typeName) }
case '[String] => '{ TsModel.String($typeName) }
case '[java.time.LocalDate] | '[org.joda.time.LocalDate] => '{ TsModel.LocalDate($typeName) }
Expand Down

0 comments on commit 9d2d462

Please sign in to comment.