diff --git a/core/5.0/string.d.ts b/core/5.0/string.d.ts index c46a756..117cb95 100644 --- a/core/5.0/string.d.ts +++ b/core/5.0/string.d.ts @@ -61,7 +61,7 @@ declare namespace string { pattern: string, init?: number, plain?: boolean - ): LuaMultiReturn<[number, number, ...string[]] | []>; + ): LuaMultiReturn<[number?, number?, ...string[]] | []>; /** * Returns a formatted version of its variable number of arguments following diff --git a/core/string.d.ts b/core/string.d.ts index 0a10e5d..6c3bea4 100644 --- a/core/string.d.ts +++ b/core/string.d.ts @@ -62,7 +62,7 @@ declare namespace string { pattern: string, init?: number, plain?: boolean - ): LuaMultiReturn<[number, number, ...string[]] | []>; + ): LuaMultiReturn<[number?, number?, ...string[]] | []>; /** * Returns a formatted version of its variable number of arguments following @@ -177,7 +177,7 @@ declare namespace string { * returned. A third, optional numeric argument init specifies where to start * the search; its default value is 1 and can be negative. */ - function match(s: string, pattern: string, init?: number): LuaMultiReturn; + function match(s: string, pattern: string, init?: number): LuaMultiReturn<[string[] | null]>; /** * Returns a string that is the concatenation of `n` copies of the string `s`.