feat: Make folder match mod name; Add type signatures
This commit is contained in:
parent
5458b7a99a
commit
75260eaa53
1 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
_: {
|
||||
keys = rec {
|
||||
## [String] | String -> String -> String -> String -> AttrSet
|
||||
mk = mode: key: action: desc: {
|
||||
inherit mode key action;
|
||||
options = {
|
||||
|
@ -8,15 +9,18 @@ _: {
|
|||
};
|
||||
};
|
||||
|
||||
## [String] | String -> String -> String -> AttrSet
|
||||
mk' = mode: key: action:
|
||||
mk mode key action null;
|
||||
|
||||
## [String] | String -> String -> String -> String -> AttrSet -> AttrSet
|
||||
mkWithOpts = mode: key: action: desc: opts:
|
||||
(mk mode key action desc)
|
||||
// {
|
||||
options = opts;
|
||||
};
|
||||
|
||||
## [String] | String -> String -> String -> AttrSet -> AttrSet
|
||||
mkWithOpts' = mode: key: action: opts:
|
||||
mkWithOpts mode key action null opts;
|
||||
};
|
Loading…
Reference in a new issue