Skip to content

Commit

Permalink
add instructions in errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
igalklebanov committed Oct 3, 2024
1 parent 1c747d5 commit 2ccbc1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/column-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ declare const SerializedBrand: unique symbol
* A type that is used to brand serialized objects/arrays.
*/
export type Serialized<O extends object | null> = O & {
[SerializedBrand]: true
[SerializedBrand]: '⚠️ When you insert into or update columns of type `JSONColumnType` (or similar), you should wrap your JSON value with `eb.valJson` or `sql.valJson`, instead of `JSON.stringify`. ⚠️'
}

/**
Expand Down

0 comments on commit 2ccbc1e

Please sign in to comment.