mirror of
https://github.com/TECHNOFAB11/docsonnet.git
synced 2026-02-02 07:35:11 +01:00
feat(lib): fn.withArgs
This commit is contained in:
parent
0d8cf83b56
commit
4c6f532e05
6 changed files with 199 additions and 127 deletions
|
|
@ -51,6 +51,11 @@
|
|||
withHelp(help):: { 'function'+: {
|
||||
help: help,
|
||||
} },
|
||||
|
||||
'#withArgs': d.fn('The `withArgs` modifier overrides the arguments of that function', [d.arg('args', d.T.array)]),
|
||||
withArgs(args):: { 'function'+: {
|
||||
args: args,
|
||||
} },
|
||||
},
|
||||
|
||||
'#fn': self.func['#new'] + d.func.withHelp('`fn` is a shorthand for `func.new`'),
|
||||
|
|
@ -83,6 +88,9 @@
|
|||
array: 'array',
|
||||
any: 'any',
|
||||
|
||||
'null': "null",
|
||||
nil: self["null"],
|
||||
|
||||
func: 'function',
|
||||
'function': self.func,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue