@gwigz/slua-types 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +5 -7
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -59,10 +59,7 @@ declare class Vector {
59
59
 
60
60
  declare type vector = Vector;
61
61
 
62
- /**
63
- * Event detection class providing access to detected object/avatar information
64
- * @noSelf
65
- */
62
+ /** Event detection class providing access to detected object/avatar information */
66
63
  declare interface DetectedEvent {
67
64
  readonly index: number;
68
65
  readonly valid: boolean;
@@ -801,10 +798,9 @@ declare namespace Quaternion {
801
798
  /** String manipulation library. */
802
799
  /** @noSelf */
803
800
  declare namespace string {
804
- /** Returns the numeric code of the byte at position i (default 1) in the input string. */
801
+ /** Returns the numeric code of every byte in the input string within the given range. */
805
802
  export function byte(s: string, i?: number): number;
806
803
 
807
- /** Returns the numeric codes of every byte in the input string within the range [i, j]. */
808
804
  export function byte(s: string, i: number, j: number): number[];
809
805
 
810
806
  /** Returns a string containing characters for the given byte values. */
@@ -939,7 +935,9 @@ declare namespace utf8 {
939
935
  export function codes(s: string): LuaMultiReturn<[(this: void, arg0: string, arg1: number) => LuaMultiReturn<[number, number]>, string, number]>;
940
936
 
941
937
  /** Returns the Unicode codepoints in the specified range of the string. */
942
- export function codepoint(s: string, i?: number, j?: number): number[];
938
+ export function codepoint(s: string, i?: number): number;
939
+
940
+ export function codepoint(s: string, i: number, j: number): number[];
943
941
 
944
942
  /** Returns the number of Unicode codepoints in the specified range of the string, or nil and error index. */
945
943
  export function len(s: string, i?: number, j?: number): LuaMultiReturn<[number | undefined, number | undefined]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gwigz/slua-types",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "TypeScript type definitions for Second Life's SLua runtime",
5
5
  "license": "MIT",
6
6
  "repository": {