mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-29 20:12:28 +03:00
15 lines
600 B
Markdown
15 lines
600 B
Markdown
|
import { ShowForTs } from '@site/src/components/TsJsHelpers';
|
||
|
|
||
|
:::tip
|
||
|
Wasp uses [superjson](https://github.com/blitz-js/superjson) under the hood.
|
||
|
This means you're not limited to only sending and receiving JSON payloads.
|
||
|
|
||
|
You can send and receive any superjson-compatible payload (like Dates, Sets, Lists, circular references, etc.) and let Wasp handle the (de)serialization.
|
||
|
|
||
|
<ShowForTs>
|
||
|
|
||
|
As long as you're annotating your Queries with the correct automatically generated types, TypeScript ensures your payloads are valid (i.e., Wasp knows how to serialize and deserialize them).
|
||
|
</ShowForTs>
|
||
|
|
||
|
:::
|