We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cde27a commit 1f6fc61Copy full SHA for 1f6fc61
docs/optionals.md
@@ -4,11 +4,11 @@ Bag supports optional parameters using the `Optional` class. `Optional` paramete
4
that can be omitted when creating a Bag object, and will automatically be excluded from array and JSON
5
representations.
6
7
-[!NOTE]
+> [!NOTE]
8
> Optional parameters are _different_ from nullable parameters, nulls are still included in the output,
9
> and can be combined with `Optional`. Optional parameters **will not** be filled with nulls when omitted.
10
11
-[!WARN]
+> [!WARN]
12
> You _must_ specify at least one other type. Optionals cannot be combined with `mixed`.
13
14
To make a property optional, use a union type that includes `Optional`:
0 commit comments