lib/options: add mkNullableWithRaw' variant

This commit is contained in:
Matt Sturgeon 2024-05-31 19:19:20 +01:00
parent 84b2b0d90c
commit e0b60bac8b
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -140,7 +140,11 @@ rec {
type: default: description:
mkNullable' { inherit type default description; };
mkNullableWithRaw = type: mkNullable (nixvimTypes.maybeRaw type);
mkNullableWithRaw' =
{ type, ... }@args: mkNullable' (args // { type = nixvimTypes.maybeRaw type; });
mkNullableWithRaw =
type: default: description:
mkNullableWithRaw' { inherit type default description; };
mkStrLuaOr =
type: default: desc: