From 760c5881023456c3279ecfd52febd1683a4962b5 Mon Sep 17 00:00:00 2001 From: dennis Date: Sun, 23 Jun 2024 16:20:17 +0300 Subject: [PATCH] number->integer fix --- types/argparse/argparse.d.tl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/types/argparse/argparse.d.tl b/types/argparse/argparse.d.tl index f077016..1d12517 100644 --- a/types/argparse/argparse.d.tl +++ b/types/argparse/argparse.d.tl @@ -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 @@ -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 @@ -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 @@ -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