lib/types: types.functionTo deprecate functor.wrapped in favor of functor.payload.elemType

This commit is contained in:
Johannes Kirschbauer
2025-01-19 16:22:24 +01:00
parent 4fe25460e1
commit f6214eb786
4 changed files with 21 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ let
listOf
unique
nullOr
functionTo
;
in
{
@@ -42,6 +43,13 @@ in
options.mergedNullOr = mkOption {
type = nullOr (listOf types.str);
};
# nullOr
options.functionTo = mkOption {
type = functionTo (listOf types.str);
};
options.mergedFunctionTo = mkOption {
type = functionTo (listOf types.str);
};
}
)
# Module B
@@ -60,6 +68,9 @@ in
options.mergedNullOr = mkOption {
type = nullOr (listOf types.str);
};
options.mergedFunctionTo = mkOption {
type = functionTo (listOf types.str);
};
}
)
];