|
| 1 | + |
| 2 | +## Enum |
| 3 | + |
| 4 | +- [ELScalar](#elscalar) |
| 5 | + |
| 6 | +### ELScalar |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | +| Property | Type | Description | |
| 11 | +| ---------- | ---------- | ---------- | |
| 12 | +| `Bool` | `'bool'` | Equivalent to PHP `bool` | |
| 13 | +| `Number` | `'number'` | Equivalent to PHP `int` or `float` | |
| 14 | +| `String` | `'string'` | Equivalent to PHP `string` | |
| 15 | +| `Null` | `'null'` | Equivalent to PHP `null` | |
| 16 | +| `Any` | `'any'` | Equivalent to PHP `mixed` | |
| 17 | + |
| 18 | + |
| 19 | +## Interfaces |
| 20 | + |
| 21 | +- [ExpressionLanguageConfig](#expressionlanguageconfig) |
| 22 | +- [ELType](#eltype) |
| 23 | +- [ELIdentifier](#elidentifier) |
| 24 | +- [ELFunction](#elfunction) |
| 25 | +- [ELParameter](#elparameter) |
| 26 | +- [ELKeyword](#elkeyword) |
| 27 | + |
| 28 | +### ExpressionLanguageConfig |
| 29 | + |
| 30 | +The configuration object that is passed to `expressionlanguage` function |
| 31 | + |
| 32 | +| Property | Type | Description | |
| 33 | +| ---------- | ---------- | ---------- | |
| 34 | +| `types` | `{ [key: string]: ELType; } or undefined` | Type definitions used in `identifiers` and `functions` | |
| 35 | +| `identifiers` | `ELIdentifier[] or undefined` | Top-level variables | |
| 36 | +| `functions` | `ELFunction[] or undefined` | Top-level functions | |
| 37 | + |
| 38 | + |
| 39 | +### ELType |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | +| Property | Type | Description | |
| 44 | +| ---------- | ---------- | ---------- | |
| 45 | +| `identifiers` | `ELIdentifier[] or undefined` | Properties of the object | |
| 46 | +| `functions` | `ELFunction[] or undefined` | Methods of the object | |
| 47 | +| `info` | `string or undefined` | | |
| 48 | + |
| 49 | + |
| 50 | +### ELIdentifier |
| 51 | + |
| 52 | +Represents a variable or a property of an object |
| 53 | + |
| 54 | +| Property | Type | Description | |
| 55 | +| ---------- | ---------- | ---------- | |
| 56 | +| `name` | `string` | | |
| 57 | +| `detail` | `string or undefined` | If set, this is shown instead of `type` | |
| 58 | +| `info` | `string or undefined` | Text to show in hover tooltip, autocomplete etc. | |
| 59 | +| `type` | `string[] or undefined` | All possible types for this identifier | |
| 60 | + |
| 61 | + |
| 62 | +### ELFunction |
| 63 | + |
| 64 | +Represents a function or a method of an object |
| 65 | + |
| 66 | +| Property | Type | Description | |
| 67 | +| ---------- | ---------- | ---------- | |
| 68 | +| `name` | `string` | | |
| 69 | +| `args` | `ELParameter[] or undefined` | | |
| 70 | +| `info` | `string or undefined` | | |
| 71 | +| `returnType` | `string[] or undefined` | | |
| 72 | + |
| 73 | + |
| 74 | +### ELParameter |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | +| Property | Type | Description | |
| 79 | +| ---------- | ---------- | ---------- | |
| 80 | +| `name` | `string` | | |
| 81 | +| `type` | `string[] or undefined` | | |
| 82 | +| `info` | `string or undefined` | | |
| 83 | +| `optional` | `boolean or undefined` | | |
| 84 | + |
| 85 | + |
| 86 | +### ELKeyword |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | +| Property | Type | Description | |
| 91 | +| ---------- | ---------- | ---------- | |
| 92 | +| `name` | `string` | | |
| 93 | +| `detail` | `string or undefined` | | |
| 94 | +| `info` | `string or undefined` | | |
| 95 | + |
| 96 | + |
| 97 | +## Types |
| 98 | + |
| 99 | +- [ELTypeName](#eltypename) |
| 100 | + |
| 101 | +### ELTypeName |
| 102 | + |
| 103 | +One of predefined types (`ELScalar`) or a custom type from `ExpressionLanguageConfig.types` |
| 104 | + |
| 105 | +| Type | Type | |
| 106 | +| ---------- | ---------- | |
| 107 | +| `ELTypeName` | `ELScalar or string` | |
| 108 | + |
0 commit comments