@rbxts/touch-button 1.0.12 → 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.12"`
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.12",
3
+ "version": "1.0.13",
4
4
  "description": "",
5
5
  "main": "src/init.lua",
6
6
  "scripts": {},
package/src/Client.lua CHANGED
@@ -9,14 +9,6 @@ local dependencies = if isTypeScriptEnv then script.Parent.Parent.Parent else sc
9
9
  local Charm = require(isTypeScriptEnv and dependencies.charm or dependencies.Charm);
10
10
  local Trove = require(isTypeScriptEnv and dependencies['sleitnick-trove'].src or dependencies.Trove);
11
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
- };
19
-
20
12
  type TouchButtonOptions = {
21
13
  name: string,
22
14
  icon: 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;