You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Identifier - unique identifier specified by the user, providing its key from TSchema or a function resolving it.
1
+
#Data
2
2
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
4
5
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.
6
8
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.
8
15
9
16
If it is a function, the type will match the type returned from the function.
10
17
@@ -14,4 +21,5 @@ If it is a function, the type will match the type returned from the function.
14
21
|`keyof Schema`|`Schema[key]`|
15
22
|`(data: Schema) => Foo`|`Foo`|
16
23
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