mirror of
https://github.com/TECHNOFAB11/docsonnet.git
synced 2026-02-02 15:45:12 +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 contains constants for the Jsonnet types
|
||||||
T:: {
|
T:: {
|
||||||
string: 'string',
|
string: 'string',
|
||||||
|
|
||||||
number: 'number',
|
number: 'number',
|
||||||
bool: 'bool',
|
int: self.number,
|
||||||
|
integer: self.number,
|
||||||
|
|
||||||
|
boolean: 'bool',
|
||||||
|
bool: self.boolean,
|
||||||
|
|
||||||
object: 'object',
|
object: 'object',
|
||||||
array: 'array',
|
array: 'array',
|
||||||
any: 'any',
|
any: 'any',
|
||||||
|
|
||||||
func: 'function',
|
func: 'function',
|
||||||
|
'function': self.func,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
pkged.go
2
pkged.go
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue