Files
divkit/test_data/expression_test_data/methods_signatures_array.json
tayrinn ebe00c6293 add signatures for methods.
commit_hash:9110f32bc056826a0d8207eaf0670a6d4c0849b2
2024-11-25 17:49:13 +03:00

181 lines
3.6 KiB
JSON

{
"signatures": [
{
"function_name": "getArray",
"is_method": true,
"doc": "Returns an array value from array by position.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Position in array."
}
],
"result_type": "array",
"platforms": [
"ios",
"web"
]
},
{
"function_name": "getBoolean",
"is_method": true,
"doc": "Returns a boolean value from array by position.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Position in array."
}
],
"result_type": "boolean",
"platforms": [
"ios",
"web"
]
},
{
"function_name": "getColor",
"is_method": true,
"doc": "Returns a color value from array by position.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Position in array."
}
],
"result_type": "color",
"platforms": [
"ios",
"web"
]
},
{
"function_name": "getDict",
"is_method": true,
"doc": "Returns a dict value from array by position.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Position in array."
}
],
"result_type": "dict",
"platforms": [
"ios",
"web"
]
},
{
"function_name": "getInteger",
"is_method": true,
"doc": "Returns an integer value from array by position.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Position in array."
}
],
"result_type": "integer",
"platforms": [
"ios",
"web"
]
},
{
"function_name": "getNumber",
"is_method": true,
"doc": "Returns a number value from array by position.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Position in array."
}
],
"result_type": "number",
"platforms": [
"ios",
"web"
]
},
{
"function_name": "getString",
"is_method": true,
"doc": "Returns a string value from array by position.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Position in array."
}
],
"result_type": "string",
"platforms": [
"ios",
"web"
]
},
{
"function_name": "getUrl",
"is_method": true,
"doc": "Returns a url value from array by position.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Position in array."
}
],
"result_type": "url",
"platforms": [
"ios",
"web"
]
},
{
"function_name": "isEmpty",
"is_method": true,
"doc": "The method returns boolean true if array is empty else false.",
"arguments": [
{
"type": "array",
"doc": "Array."
}
],
"result_type": "boolean",
"platforms": [
"ios",
"web"
]
}
]
}