|
9 | 9 | {
|
10 | 10 | "name": "toType",
|
11 | 11 | "description": "convert value to specified type",
|
12 |
| - "example": "coerce.toType(\"123\",\"int\")\nReturns\n123", |
| 12 | + "example": "coerce.toType(\"123\",\"int\") => 123", |
13 | 13 | "args": [
|
14 | 14 | {
|
15 | 15 | "name": "value",
|
|
27 | 27 | {
|
28 | 28 | "name": "toString",
|
29 | 29 | "description": "convert value to a string",
|
30 |
| - "example": "coerce.toString(123)\nReturns\n\"123\"", |
| 30 | + "example": "coerce.toString(123) => \"123\"", |
31 | 31 | "args": [
|
32 | 32 | {
|
33 | 33 | "name": "value",
|
|
41 | 41 | {
|
42 | 42 | "name": "toInt",
|
43 | 43 | "description": "convert value to an int",
|
44 |
| - "example": "coerce.toInt(\"333\")\nReturns\n333", |
| 44 | + "example": "coerce.toInt(\"333\") => 333", |
45 | 45 | "args": [
|
46 | 46 | {
|
47 | 47 | "name": "value",
|
|
55 | 55 | {
|
56 | 56 | "name": "toInt32",
|
57 | 57 | "description": "convert value to an int32",
|
58 |
| - "example": "coerce.toInt32(\"333\")\nReturns\n333", |
| 58 | + "example": "coerce.toInt32(\"333\") => 333", |
59 | 59 | "args": [
|
60 | 60 | {
|
61 | 61 | "name": "value",
|
|
69 | 69 | {
|
70 | 70 | "name": "toInt64",
|
71 | 71 | "description": "convert value to a int64",
|
72 |
| - "example": "coerce.toInt64(\"333\")\nReturns\n333", |
| 72 | + "example": "coerce.toInt64(\"333\") => 333", |
73 | 73 | "args": [
|
74 | 74 | {
|
75 | 75 | "name": "value",
|
|
83 | 83 | {
|
84 | 84 | "name": "toFloat32",
|
85 | 85 | "description": "convert value to a float32",
|
86 |
| - "example": "coerce.toFloat32(\"3.3\")\nReturns\n3.3", |
| 86 | + "example": "coerce.toFloat32(\"3.3\") => 3.3", |
87 | 87 | "args": [
|
88 | 88 | {
|
89 | 89 | "name": "value",
|
|
97 | 97 | {
|
98 | 98 | "name": "toFloat64",
|
99 | 99 | "description": "convert value to a float64",
|
100 |
| - "example": "coerce.toFloat64(\"3.3\")\nReturns\n3.3", |
| 100 | + "example": "coerce.toFloat64(\"3.3\") => 3.3", |
101 | 101 | "args": [
|
102 | 102 | {
|
103 | 103 | "name": "value",
|
|
111 | 111 | {
|
112 | 112 | "name": "toBool",
|
113 | 113 | "description": "convert value to a bool",
|
114 |
| - "example": "coerce.toBool(\"true\")\nReturns\ntrue", |
| 114 | + "example": "coerce.toBool(\"true\") => true", |
115 | 115 | "args": [
|
116 | 116 | {
|
117 | 117 | "name": "value",
|
|
125 | 125 | {
|
126 | 126 | "name": "toBytes",
|
127 | 127 | "description": "convert value to bytes",
|
128 |
| - "example": "coerce.toBytes(\"hello\")\nReturns\n3byte data", |
| 128 | + "example": "coerce.toBytes(\"hello\") => byte data", |
129 | 129 | "args": [
|
130 | 130 | {
|
131 | 131 | "name": "value",
|
|
139 | 139 | {
|
140 | 140 | "name": "toParams",
|
141 | 141 | "description": "convert value to params",
|
142 |
| - "example": "coerce.toParams($activity[xxx].xxx)\nReturns\nstring name-value map", |
| 142 | + "example": "coerce.toParams($activity[xxx].xxx) => string name-value map", |
143 | 143 | "args": [
|
144 | 144 | {
|
145 | 145 | "name": "value",
|
|
152 | 152 | },
|
153 | 153 | {
|
154 | 154 | "name": "toObject",
|
155 |
| - "example": "coerce.toObject($activity[xxx].xxx)\nReturns\n Json object", |
| 155 | + "example": "coerce.toObject($activity[xxx].xxx) => Json object", |
156 | 156 | "description": "convert value to an object",
|
157 | 157 | "args": [
|
158 | 158 | {
|
|
167 | 167 | {
|
168 | 168 | "name": "toArray",
|
169 | 169 | "description": "convert value to an array",
|
170 |
| - "example": "coerce.toArray($activity[xxx].xxx)\nReturns\n Json array", |
| 170 | + "example": "coerce.toArray($activity[xxx].xxx) => Json array", |
171 | 171 | "args": [
|
172 | 172 | {
|
173 | 173 | "name": "value",
|
|
0 commit comments