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

219 lines
4.3 KiB
JSON

{
"signatures": [
{
"function_name": "getArray",
"is_method": true,
"doc": "Returns an array value from dict by key.",
"arguments": [
{
"type": "dict",
"doc": "Dict."
},
{
"type": "string",
"vararg": true,
"doc": "Path in dictionary."
}
],
"result_type": "array",
"platforms": [
"android",
"ios",
"web"
]
},
{
"function_name": "getBoolean",
"is_method": true,
"doc": "Returns a boolean value from dict by key.",
"arguments": [
{
"type": "dict",
"doc": "Dict."
},
{
"type": "string",
"vararg": true,
"doc": "Path in dictionary."
}
],
"result_type": "boolean",
"platforms": [
"android",
"ios",
"web"
]
},
{
"function_name": "getColor",
"is_method": true,
"doc": "Returns a color value from dict by key.",
"arguments": [
{
"type": "dict",
"doc": "Dict."
},
{
"type": "string",
"vararg": true,
"doc": "Path in dictionary."
}
],
"result_type": "color",
"platforms": [
"android",
"ios",
"web"
]
},
{
"function_name": "getDict",
"is_method": true,
"doc": "Returns a dict value from dict by key.",
"arguments": [
{
"type": "dict",
"doc": "Dict."
},
{
"type": "string",
"vararg": true,
"doc": "Path in dictionary."
}
],
"result_type": "dict",
"platforms": [
"android",
"ios",
"web"
]
},
{
"function_name": "getInteger",
"is_method": true,
"doc": "Returns an integer value from dict by key.",
"arguments": [
{
"type": "dict",
"doc": "Dict."
},
{
"type": "string",
"vararg": true,
"doc": "Path in dictionary."
}
],
"result_type": "integer",
"platforms": [
"android",
"ios",
"web"
]
},
{
"function_name": "getNumber",
"is_method": true,
"doc": "Returns a number value from dict by key.",
"arguments": [
{
"type": "dict",
"doc": "Dict."
},
{
"type": "string",
"vararg": true,
"doc": "Path in dictionary."
}
],
"result_type": "number",
"platforms": [
"android",
"ios",
"web"
]
},
{
"function_name": "getString",
"is_method": true,
"doc": "Returns a string value from dict by key.",
"arguments": [
{
"type": "dict",
"doc": "Dict."
},
{
"type": "string",
"vararg": true,
"doc": "Path in dictionary."
}
],
"result_type": "string",
"platforms": [
"android",
"ios",
"web"
]
},
{
"function_name": "getUrl",
"is_method": true,
"doc": "Returns a url value from dict by key.",
"arguments": [
{
"type": "dict",
"doc": "Dict."
},
{
"type": "string",
"vararg": true,
"doc": "Path in dictionary."
}
],
"result_type": "url",
"platforms": [
"android",
"ios",
"web"
]
},
{
"function_name": "containsKey",
"is_method": true,
"doc": "Returns true if the given key is present in the dictionary.",
"arguments": [
{
"type": "dict",
"doc": "Dict."
},
{
"type": "string",
"doc": "Key in dictionary."
}
],
"result_type": "boolean",
"platforms": [
"android",
"ios",
"web"
]
},
{
"function_name": "isEmpty",
"is_method": true,
"doc": "The method returns boolean true if dict is empty else false.",
"arguments": [
{
"type": "dict",
"doc": "Dict."
}
],
"result_type": "boolean",
"platforms": [
"android",
"ios",
"web"
]
}
]
}