nushell / vscode-nushell-lang

A Nushell grammar for Visual Studio Code with IDE support
https://www.nushell.sh/
MIT License
122 stars 27 forks source link

add new nushell syntax for input output types #159

Closed fdncred closed 1 year ago

fdncred commented 1 year ago

JT added some new syntax to custom commands to allow one to specify the input and output types. You can see the details in PR9690

For example (a single int-to-int input/output pair):

def foo []: int -> int { ... }

You can also have multiple input/output pairs:

def bar []: [int -> string, string -> list<string>] { ... }

@glcraft I hope it's not a problem tagging you on new syntax. You're help would be appreciated here too.

Related to https://github.com/nushell/vscode-nushell-lang/issues/146

glcraft commented 1 year ago

Yep ok, I'm going to check this out 👍

fdncred commented 1 year ago

closed by #160