Comparing version 2.1.0 to 2.1.1
@@ -23,10 +23,4 @@ // Based on https://www.lua.org/manual/5.3/manual.html#6.7 | ||
/** | ||
* Returns the arc tangent of y/x (in radians), but uses the signs of both parameters to find the quadrant of the result. (It also handles correctly the case of x being zero.) | ||
* | ||
* The default value for x is 1, so that the call math.atan(y) returns the arc tangent of y. | ||
* Returns the smallest integral value larger than or equal to x. | ||
*/ | ||
function atan(y: number, x?: number): number; | ||
/** * Returns the smallest integral value larger than or equal to x. | ||
*/ | ||
function ceil(x: number): number; | ||
@@ -103,17 +97,2 @@ | ||
function tan(x: number): number; | ||
/** | ||
* If the value x is convertible to an integer, returns that integer. Otherwise, returns nil. | ||
*/ | ||
function tointeger(x: number): number; | ||
/** | ||
* Returns "integer" if x is an integer, "float" if it is a float, or nil if x is not a number. | ||
*/ | ||
function type(x: number): 'integer' | 'float' | null; | ||
/** | ||
* Returns a boolean, true if and only if integer m is below integer n when they are compared as unsigned integers. | ||
*/ | ||
function ult(m: number, n: number): boolean; | ||
} |
{ | ||
"name": "lua-types", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "TypeScript definitions for Lua standard library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
import './5.1-only'; | ||
import './5.1-or-jit'; | ||
import './5.3-pre'; | ||
import './5.4-pre'; |
@@ -0,4 +1,5 @@ | ||
import './5.2-only'; | ||
import './5.2-plus'; | ||
import './5.2-plus-or-jit'; | ||
import './5.2-only'; | ||
import './5.3-pre'; | ||
import './5.4-pre'; |
@@ -10,2 +10,9 @@ /** | ||
/** | ||
* Returns the arc tangent of y/x (in radians), but uses the signs of both parameters to find the quadrant of the result. (It also handles correctly the case of x being zero.) | ||
* | ||
* The default value for x is 1, so that the call math.atan(y) returns the arc tangent of y. | ||
*/ | ||
function atan(y: number, x?: number): number; | ||
/** | ||
* An integer with the minimum value for an integer. | ||
@@ -19,2 +26,17 @@ */ | ||
const maxinteger: number; | ||
/** | ||
* If the value x is convertible to an integer, returns that integer. Otherwise, returns nil. | ||
*/ | ||
function tointeger(x: number): number; | ||
/** | ||
* Returns "integer" if x is an integer, "float" if it is a float, or nil if x is not a number. | ||
*/ | ||
function type(x: number): 'integer' | 'float' | null; | ||
/** | ||
* Returns a boolean, true if and only if integer m is below integer n when they are compared as unsigned integers. | ||
*/ | ||
function ult(m: number, n: number): boolean; | ||
} | ||
@@ -21,0 +43,0 @@ |
declare namespace math { | ||
/** | ||
* Returns the arc tangent of x (in radians). | ||
*/ | ||
function atan(x: number): number; | ||
/** | ||
* Returns the arc tangent of y/x (in radians), but uses the signs of both parameters to find the quadrant of the result. (It also handles correctly the case of x being zero.) | ||
@@ -23,24 +28,7 @@ */ | ||
/** | ||
* Returns the base-10 logarithm of x. | ||
* Returns xy. (You can also use the expression x^y to compute this value.) | ||
*/ | ||
function log10(x: number): number; | ||
/** | ||
* Returns x ^ y | ||
*/ | ||
function pow(x: number, y: number): number; | ||
/** | ||
* This function is an interface to the simple pseudo-random generator function rand provided by ANSI C. (No guarantees can be given for its statistical properties.) | ||
* | ||
* When called without arguments, returns a uniform pseudo-random real number in the range [0,1). When called with an integer number m, math.random returns a uniform pseudo-random integer in the range [1, m]. When called with two integer numbers m and n, math.random returns a uniform pseudo-random integer in the range [m, n]. | ||
*/ | ||
function random(m?: number, n?: number): number; | ||
/** | ||
* Sets x as the "seed" for the pseudo-random generator: equal seeds produce equal sequences of numbers. | ||
*/ | ||
function randomseed(x: number): number; | ||
/** | ||
* Returns the hyperbolic sine of x. | ||
@@ -47,0 +35,0 @@ */ |
import './5.2-plus'; | ||
import './5.2-plus-or-jit'; | ||
import './5.3-only'; | ||
import './5.3-plus'; | ||
import './5.3-only'; | ||
import './5.4-pre'; |
import './5.1-or-jit'; | ||
import './5.2-plus-or-jit'; | ||
import './5.3-pre'; | ||
import './5.4-pre'; | ||
import './jit-only'; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
116615
1960