generated from clerk/t3-turbo-and-clerk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Diego Romero
committed
Nov 20, 2023
1 parent
7732824
commit 623ddd7
Showing
4 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
import superjson from "superjson"; | ||
export const transformer = superjson; | ||
import { Decimal } from "decimal.js"; | ||
import SuperJSON from "superjson"; | ||
|
||
SuperJSON.registerCustom<Decimal, string>( | ||
{ | ||
isApplicable: (v): v is Decimal => Decimal.isDecimal(v), | ||
serialize: (v) => v.toJSON(), | ||
deserialize: (v) => new Decimal(v), | ||
}, | ||
"decimal.js", | ||
); | ||
|
||
export const transformer = SuperJSON; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.