Skip to content

Commit 9fc1ef9

Browse files
committed
anonymous
1 parent b7f896a commit 9fc1ef9

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

v1/content/data-types/anomyous.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ weight: 41
55

66
Anonymous type can be created to define the output value of things.
77

8-
> Return value in JSON format
9-
10-
```thingsdb
8+
```thingsdb,should_pass
119
// User type with three field:
1210
set_type('User', {
1311
name: 'str',
@@ -30,7 +28,14 @@ set_type('User', {
3028
});
3129
```
3230

33-
``
31+
> Possible return value in JSON format
32+
```jaon
33+
{
34+
"id": 12345,
35+
"name": "Jeroen van der Heijden",
36+
"email": "[email protected]"
37+
}
38+
```
3439

3540
### Related functions
3641

0 commit comments

Comments
 (0)