Skip to content

Commit

Permalink
feat(lib): type aliases
Browse files Browse the repository at this point in the history
Adds a couple of common type aliases to make using easier
  • Loading branch information
sh0rez committed May 12, 2020
1 parent 4e4d4a7 commit f284bff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion doc-util/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}
2 changes: 1 addition & 1 deletion pkged.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f284bff

Please sign in to comment.