feat(lib): type aliases

Adds a couple of common type aliases to make using easier
This commit is contained in:
sh0rez 2020-05-12 15:22:46 +02:00
parent 4e4d4a7170
commit f284bff4e5
No known key found for this signature in database
GPG key ID: 87C71DF9F8181FF1
2 changed files with 10 additions and 2 deletions

View file

@ -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,
},
}