Skip to content

Commit 1985d5e

Browse files
committed
✏️ fix: markdown problems in docs
1 parent aeb70dc commit 1985d5e

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

docs/data.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1-
## Identifier - unique identifier specified by the user, providing its key from TSchema or a function resolving it.
1+
# Data
22

3-
The `ResolveIdentifier` type is intended to specify the type of identifier in the Schema uniquely.
3+
`Identifier` - unique identifier specified by the user, providing its key from
4+
TSchema or a function resolving it
45

5-
If the identifier has not been specified by the user, the DefaultIdentifier will be returned as a fallback to `string`.
6+
The `ResolveIdentifier` type is intended to specify the type of identifier in
7+
the Schema uniquely.
68

7-
If specified, it must be a key in the Schema or a function generating the identifier. In the case of being a key, the returned identifier will be of the corresponding value type.
9+
If the identifier has not been specified by the user, the DefaultIdentifier will
10+
be returned as a fallback to `string`.
11+
12+
If specified, it must be a key in the Schema or a function generating the
13+
identifier. In the case of being a key, the returned identifier will be of
14+
the corresponding value type.
815

916
If it is a function, the type will match the type returned from the function.
1017

@@ -14,4 +21,5 @@ If it is a function, the type will match the type returned from the function.
1421
| `keyof Schema` | `Schema[key]` |
1522
| `(data: Schema) => Foo` | `Foo` |
1623

17-
The UpdateEntityInput type is used in functions updating data and aims to secure against updating the identifier to ensure data integrity.
24+
The UpdateEntityInput type is used in functions updating data and aims to secure
25+
against updating the identifier to ensure data integrity.

0 commit comments

Comments
 (0)