Socket
Socket
Sign inDemoInstall

lua-types

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lua-types - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

23

core/math.d.ts

@@ -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;
}

2

package.json
{
"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';
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc