@paulbarmstrong/js-to-sqf 0.1.2-alpha → 0.1.3-alpha

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 (4) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +7 -7
  3. package/index.d.ts +12 -6
  4. package/package.json +36 -36
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Paul B. Armstrong
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Paul B. Armstrong
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
- ### @paulbarmstrong/js-to-sqf
2
-
3
- This is a typescript types library defining SQF (Status Quo Format) commands and functions. The purpose is to make it easy to author code which can be transpiled to SQF by the [@paulbarmstrong/js-to-sqf-cli](https://github.com/paulbarmstrong/js-to-sqf-cli) tool.
4
-
5
- #### Usage
6
-
7
- See https://github.com/paulbarmstrong/js-to-sqf-cli
1
+ ### @paulbarmstrong/js-to-sqf
2
+
3
+ This is a typescript types library defining SQF (Status Quo Format) commands and functions. The purpose is to make it easy to author code which can be transpiled to SQF by the [@paulbarmstrong/js-to-sqf-cli](https://github.com/paulbarmstrong/js-to-sqf-cli) tool.
4
+
5
+ #### Usage
6
+
7
+ See https://github.com/paulbarmstrong/js-to-sqf-cli
package/index.d.ts CHANGED
@@ -5144,57 +5144,63 @@ export function lnbCurSelRowV2(ctrl: Control): number
5144
5144
  * Returns the additional text (invisible) in an item with the given position of
5145
5145
  * the 2D listbox.
5146
5146
  *
5147
+ * @param cell - list item position in format [row, column]
5147
5148
  * @returns string
5148
5149
  * @see {@link https://community.bistudio.com/wiki/lnbData}
5149
5150
  * @sqfsyntaxtype unary
5150
5151
  */
5151
- export function lnbData(idc: number | Control, row: number, column: number): string
5152
+ export function lnbData(idc: number | Control, cell: [number, number]): string
5152
5153
 
5153
5154
  /**
5154
5155
  * Returns the additional text (invisible) in an item with the given position of
5155
5156
  * the 2D listbox.
5156
5157
  *
5158
+ * @param cell - list item position in format [row, column]
5157
5159
  * @returns string
5158
5160
  * @see {@link https://community.bistudio.com/wiki/lnbData}
5159
5161
  * @sqfsyntaxtype binary
5160
5162
  */
5161
- export function lnbDataV2(ctrl: Control, row: number, column: number): string
5163
+ export function lnbDataV2(ctrl: Control, cell: [number, number]): string
5162
5164
 
5163
5165
  /**
5164
5166
  * Sets the additional text (invisible) on the item with the given position of the
5165
5167
  * 2D listbox.
5166
5168
  *
5169
+ * @param cell - list item position in format [row, column]
5167
5170
  * @param data - the invisible text to add
5168
5171
  * @see {@link https://community.bistudio.com/wiki/lnbSetData}
5169
5172
  * @sqfsyntaxtype unary
5170
5173
  */
5171
- export function lnbSetData(idc: number, row: number, column: number, data: string): void
5174
+ export function lnbSetData(idc: number, cell: [number, number], data: string): void
5172
5175
 
5173
5176
  /**
5174
5177
  * Sets the additional text (invisible) on the item with the given position of the
5175
5178
  * 2D listbox.
5176
5179
  *
5180
+ * @param cell - list item position in format [row, column]
5177
5181
  * @param data - the invisible text to add
5178
5182
  * @see {@link https://community.bistudio.com/wiki/lnbSetData}
5179
5183
  * @sqfsyntaxtype binary
5180
5184
  */
5181
- export function lnbSetDataV2(ctrl: Control, row: number, column: number, data: string): void
5185
+ export function lnbSetDataV2(ctrl: Control, cell: [number, number], data: string): void
5182
5186
 
5183
5187
  /**
5184
5188
  * Sets the text in the item with the given position of the 2D listbox.
5185
5189
  *
5190
+ * @param cell - list item position in format [row, column]
5186
5191
  * @see {@link https://community.bistudio.com/wiki/lnbSetText}
5187
5192
  * @sqfsyntaxtype unary
5188
5193
  */
5189
- export function lnbSetText(idc: number, row: number, column: number, data: string): void
5194
+ export function lnbSetText(idc: number, cell: [number, number], data: string): void
5190
5195
 
5191
5196
  /**
5192
5197
  * Sets the text in the item with the given position of the 2D listbox.
5193
5198
  *
5199
+ * @param cell - list item position in format [row, column]
5194
5200
  * @see {@link https://community.bistudio.com/wiki/lnbSetText}
5195
5201
  * @sqfsyntaxtype binary
5196
5202
  */
5197
- export function lnbSetTextV2(ctrl: Control, row: number, column: number, data: string): void
5203
+ export function lnbSetTextV2(ctrl: Control, cell: [number, number], data: string): void
5198
5204
 
5199
5205
  /**
5200
5206
  * Parses the string, interpreting its content as a floating point number. ⚠This
package/package.json CHANGED
@@ -1,36 +1,36 @@
1
- {
2
- "name": "@paulbarmstrong/js-to-sqf",
3
- "version": "0.1.2-alpha",
4
- "type": "module",
5
- "publishConfig": {
6
- "access": "public"
7
- },
8
- "types": "index.d.ts",
9
- "exports": {
10
- ".": {
11
- "types": "./index.d.ts"
12
- }
13
- },
14
- "files": [
15
- "index.d.ts"
16
- ],
17
- "scripts": {
18
- "generate": "node generate.js"
19
- },
20
- "repository": {
21
- "type": "git",
22
- "url": "git+https://github.com/paulbarmstrong/js-to-sqf.git"
23
- },
24
- "keywords": [
25
- "sqf",
26
- "types",
27
- "typescript"
28
- ],
29
- "author": "",
30
- "license": "ISC",
31
- "bugs": {
32
- "url": "https://github.com/paulbarmstrong/js-to-sqf/issues"
33
- },
34
- "homepage": "https://github.com/paulbarmstrong/js-to-sqf#readme",
35
- "description": "Type definitions for the js-to-sqf ecosystem"
36
- }
1
+ {
2
+ "name": "@paulbarmstrong/js-to-sqf",
3
+ "version": "0.1.3-alpha",
4
+ "type": "module",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "types": "index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./index.d.ts"
12
+ }
13
+ },
14
+ "files": [
15
+ "index.d.ts"
16
+ ],
17
+ "scripts": {
18
+ "generate": "node generate.js"
19
+ },
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/paulbarmstrong/js-to-sqf.git"
23
+ },
24
+ "keywords": [
25
+ "sqf",
26
+ "types",
27
+ "typescript"
28
+ ],
29
+ "author": "",
30
+ "license": "ISC",
31
+ "bugs": {
32
+ "url": "https://github.com/paulbarmstrong/js-to-sqf/issues"
33
+ },
34
+ "homepage": "https://github.com/paulbarmstrong/js-to-sqf#readme",
35
+ "description": "Type definitions for the js-to-sqf ecosystem"
36
+ }