From 9d510ff66ce4d6f41a2684ff8b7f73a5e7d89f7f Mon Sep 17 00:00:00 2001 From: Firegem Date: Wed, 7 May 2025 15:33:39 -0400 Subject: [PATCH] revert command type signature change --- crates/nu-command/src/filters/default.rs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/crates/nu-command/src/filters/default.rs b/crates/nu-command/src/filters/default.rs index 9c40e480de..36d4f0e5b6 100644 --- a/crates/nu-command/src/filters/default.rs +++ b/crates/nu-command/src/filters/default.rs @@ -13,19 +13,7 @@ impl Command for Default { Signature::build("default") // TODO: Give more specific type signature? // TODO: Declare usage of cell paths in signature? (It seems to behave as if it uses cell paths) - .input_output_types(vec![ - (Type::Nothing, Type::Any), - (Type::String, Type::Any), - (Type::record(), Type::Any), - (Type::list(Type::Any), Type::Any), - (Type::Number, Type::Number), - (Type::Closure, Type::Closure), - (Type::Filesize, Type::Filesize), - (Type::Bool, Type::Bool), - (Type::Date, Type::Date), - (Type::Duration, Type::Duration), - (Type::Range, Type::Range), - ]) + .input_output_types(vec![(Type::Any, Type::Any)]) .required( "default value", SyntaxShape::Any,