Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

number->integer fix #56

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions types/argparse/argparse.d.tl
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ local record argparse
get_usage: function(self: Parser): string
get_help: function(self: Parser): string

option: function(self: Parser, name: string, description: string, default: string, convert: function | {function}, args: {string}, count: number | string): Option
option: function(self: Parser, name: string, description: string, default: string, convert: {string:string}, args: {string}, count: number | string): Option
option: function(self: Parser, name: string, description: string, default: string, convert: function | {function}, args: {string}, count: integer | string): Option
option: function(self: Parser, name: string, description: string, default: string, convert: {string:string}, args: {string}, count: integer | string): Option

require_command: function(self: Parser, require_command: boolean): Parser
command_target: function(self: Parser, command_target: string): Parser
Expand Down Expand Up @@ -50,7 +50,7 @@ local record argparse
convert: function(self: Argument, convert: function | {function}): Argument
convert: function(self: Argument, convert: {string:string}): Argument

args: function(self: Argument, args: string | number): Argument
args: function(self: Argument, args: string | integer): Argument

action: function(self: Argument, cb: ActionCallback)
end
Expand All @@ -61,7 +61,7 @@ local record argparse

argname: function(self: Option, argname: string | {string}): Option

count: function(self: Option, count: number | string): Option
count: function(self: Option, count: integer | string): Option

choices: function(self: Option, {string}): Option

Expand All @@ -71,7 +71,7 @@ local record argparse

target: function(self: Option, target: string): Option

args: function(self: Option, args: string|number): Option
args: function(self: Option, args: string|integer): Option

action: function(self: Option, cb: ActionCallback)
end
Expand Down