@rbxts/touch-button 1.0.11 → 1.0.13

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.
package/README.md CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  ## Install
4
4
  Install with [wally](https://wally.run/):\
5
- `TouchButton = "shouxtech/touch-button@1.0.11"`
5
+ `TouchButton = "shouxtech/touch-button@1.0.13"`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/touch-button",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "",
5
5
  "main": "src/init.lua",
6
6
  "scripts": {},
package/src/Client.lua CHANGED
@@ -7,15 +7,7 @@ local Shared = require(script.Parent.Shared);
7
7
  local isTypeScriptEnv = script.Parent.Name == 'src';
8
8
  local dependencies = if isTypeScriptEnv then script.Parent.Parent.Parent else script.Parent.Parent;
9
9
  local Charm = require(isTypeScriptEnv and dependencies.charm or dependencies.Charm);
10
- local Trove = require(isTypeScriptEnv and dependencies['sleitnick-trove'] or dependencies.Trove);
11
-
12
- type TouchButton = {
13
- setIcon: (self: TouchButton, icon: string) -> (),
14
- setSize: (self: TouchButton, size: UDim2) -> (),
15
- setPosition: (self: TouchButton, position: UDim2) -> (),
16
- setConfig: (self: TouchButton, config: Shared.TouchButtonConfig) -> (),
17
- destroy: (self: TouchButton) -> (),
18
- };
10
+ local Trove = require(isTypeScriptEnv and dependencies['sleitnick-trove'].src or dependencies.Trove);
19
11
 
20
12
  type TouchButtonOptions = {
21
13
  name: string,
@@ -104,7 +96,7 @@ local Client = {};
104
96
  Client.__index = Client;
105
97
 
106
98
  Client.configEditingMode = Charm.atom(false);
107
- Client.touchButtons = {} :: { TouchButton };
99
+ Client.touchButtons = {} :: { typeof(setmetatable({}, Client)) };
108
100
 
109
101
  function Client._init()
110
102
  if initialized then return; end;