Skip to content

Commit f47f5ca

Browse files
committed
type
1 parent 1bf2e70 commit f47f5ca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Types.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export type MapLib = {
2222
MovePartLocal: (MapLib, PVInstance, Vector3, number?) -> nil,
2323

2424
GetPlayers: (MapLib) -> { Player },
25-
GetFeature: ((MapLib, "Players") -> any)
25+
GetFeature: ((MapLib, string) -> any)
2626

2727
}
2828

src/init.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ end
5656
--- @private
5757
--- @within MapLib
5858

59-
local MapLib = {}
59+
local MapLib: Types.MapLib = {} :: Types.MapLib
6060
MapLib.__index = MapLib
6161

6262
function MapLib.new(map, MapHandler)
63-
local self = setmetatable({}, MapLib)
63+
local self: Types.MapLib = setmetatable({}, MapLib)
6464

6565
self.map = map
6666
self.Map = map

0 commit comments

Comments
 (0)