Add include_standard_packages to Definitions.
This commit is contained in:
49
examples/definitions/.rhai/defs.json
Normal file
49
examples/definitions/.rhai/defs.json
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"modules": {
|
||||
"general_kenobi": {
|
||||
"functions": [
|
||||
{
|
||||
"baseHash": 2647973605745432570,
|
||||
"fullHash": 14052888716942083368,
|
||||
"namespace": "internal",
|
||||
"access": "public",
|
||||
"name": "hello_there",
|
||||
"type": "native",
|
||||
"numParams": 1,
|
||||
"params": [
|
||||
{
|
||||
"name": "n",
|
||||
"type": "i64"
|
||||
}
|
||||
],
|
||||
"returnType": "String",
|
||||
"signature": "hello_there(n: i64) -> String",
|
||||
"docComments": [
|
||||
"/// Returns a string where \"hello there\" is repeated `n` times."
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"functions": [
|
||||
{
|
||||
"baseHash": 6399059862174416123,
|
||||
"fullHash": 15886705420394126404,
|
||||
"namespace": "global",
|
||||
"access": "public",
|
||||
"name": "minus",
|
||||
"type": "native",
|
||||
"numParams": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "i64"
|
||||
},
|
||||
{
|
||||
"type": "i64"
|
||||
}
|
||||
],
|
||||
"returnType": "i64",
|
||||
"signature": "minus(_: i64, _: i64) -> i64"
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user