Files
divkit/test_data/expression_test_data/methods_signatures_array.json
T
avmushtukov 1cf94e0f59 add support for array methods and fix issues with tests
commit_hash:edee6544bfe24236ce733a5d0545f7ec18d2293c
2024-12-05 10:28:03 +03:00

190 lines
3.8 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",
"android"
]
},
{
"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",
"android"
]
},
{
"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",
"android"
]
},
{
"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",
"android"
]
},
{
"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",
"android"
]
},
{
"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",
"android"
]
},
{
"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",
"android"
]
},
{
"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",
"android"
]
},
{
"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",
"android"
]
}
]
}