mirror of
https://github.com/TECHNOFAB11/docsonnet.git
synced 2025-12-11 22:10:13 +01:00
feat(lib): type aliases
Adds a couple of common type aliases to make using easier
This commit is contained in:
parent
4e4d4a7170
commit
f284bff4e5
2 changed files with 10 additions and 2 deletions
|
|
@ -71,11 +71,19 @@
|
|||
// T contains constants for the Jsonnet types
|
||||
T:: {
|
||||
string: 'string',
|
||||
|
||||
number: 'number',
|
||||
bool: 'bool',
|
||||
int: self.number,
|
||||
integer: self.number,
|
||||
|
||||
boolean: 'bool',
|
||||
bool: self.boolean,
|
||||
|
||||
object: 'object',
|
||||
array: 'array',
|
||||
any: 'any',
|
||||
|
||||
func: 'function',
|
||||
'function': self.func,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue