Comparing version 2.7.0 to 2.8.0
@@ -28,3 +28,5 @@ // Based on https://www.lua.org/manual/5.3/manual.html#6.4 | ||
*/ | ||
function byte(s: string, i?: number, j?: number): number; | ||
function byte(s: string, i?: number): number; | ||
/** @tupleReturn */ | ||
function byte(s: string, i?: number, j?: number): number[]; | ||
@@ -31,0 +33,0 @@ /** |
{ | ||
"name": "lua-types", | ||
"version": "2.7.0", | ||
"version": "2.8.0", | ||
"description": "TypeScript definitions for Lua standard library", | ||
@@ -17,7 +17,7 @@ "keywords": [ | ||
"scripts": { | ||
"lint": "prettier --check **/.*.yml **/*.{ts,yml,md}" | ||
"lint": "prettier --check ." | ||
}, | ||
"prettier": { | ||
"printWidth": 100, | ||
"proseWrap": "always", | ||
"proseWrap": "never", | ||
"singleQuote": true, | ||
@@ -27,5 +27,5 @@ "trailingComma": "all" | ||
"devDependencies": { | ||
"prettier": "^1.19.1", | ||
"typescript-to-lua": "^0.30.1" | ||
"prettier": "^2.0.5", | ||
"typescript-to-lua": "^0.32.2" | ||
} | ||
} |
# Lua Types | ||
[![npm](https://img.shields.io/npm/v/lua-types.svg)](https://npmjs.com/package/lua-types) | ||
[![Travis](https://img.shields.io/travis/ark120202/lua-types.svg)](https://travis-ci.org/ark120202/lua-types) | ||
[![npm](https://img.shields.io/npm/v/lua-types.svg)](https://npmjs.com/package/lua-types) [![Travis](https://img.shields.io/travis/ark120202/lua-types.svg)](https://travis-ci.org/ark120202/lua-types) | ||
@@ -10,5 +9,3 @@ > TypeScript definitions for Lua standard library | ||
> NOTE: In most of cases your environment-specific types would already include this package. In that | ||
> case you don't need to do anything. If you're a developer of such types you should add `lua-types` | ||
> as a dependency and load it by adding `/// <reference types="lua-types/version" />` | ||
> NOTE: In most of cases your environment-specific types would already include this package. In that case you don't need to do anything. If you're a developer of such types you should add `lua-types` as a dependency and load it by adding `/// <reference types="lua-types/version" />` | ||
@@ -25,6 +22,7 @@ 1. Get this package from npm | ||
```json | ||
```diff | ||
{ | ||
"compilerOptions": { | ||
"types": ["lua-types/version"] | ||
+ "moduleResolution": "node" | ||
+ "types": ["lua-types/version"] | ||
} | ||
@@ -42,5 +40,2 @@ } | ||
> NOTE: All other files in this module shouldn't be considered public. Do not import them manually, | ||
> as they may change in non-major updates. If your environment doesn't provide all of standard Lua | ||
> features, consider banning them with a | ||
> [no-restricted-globals](https://eslint.org/docs/rules/no-restricted-globals) eslint rule. | ||
> NOTE: All other files in this module shouldn't be considered public. Do not import them manually, as they may change in non-major updates. If your environment doesn't provide all of standard Lua features, consider banning them with a [no-restricted-globals](https://eslint.org/docs/rules/no-restricted-globals) eslint rule. |
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
122180
2829
39