lib/types: add description for functionTo
This commit is contained in:
parent
4015c5ca9c
commit
e0215b3175
@ -454,7 +454,8 @@ rec {
|
||||
};
|
||||
|
||||
functionTo = elemType: mkOptionType {
|
||||
name = "function that evaluates to a(n) ${elemType.name}";
|
||||
name = "functionTo";
|
||||
description = "function that evaluates to a(n) ${elemType.name}";
|
||||
check = isFunction;
|
||||
merge = loc: defs:
|
||||
fnArgs: (mergeDefinitions (loc ++ [ "[function body]" ]) elemType (map (fn: { inherit (fn) file; value = fn.value fnArgs; }) defs)).mergedValue;
|
||||
|
Loading…
Reference in New Issue
Block a user