Skip to content

Commit

Permalink
Fix type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
boatbomber committed Nov 1, 2022
1 parent 7e30dd3 commit bdff393
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ function SheetValues.new(SpreadId: string, SheetId: string?)
-- Default SheetId to 0 as that's Google's default SheetId
SheetId = (SheetId or "0")

local GUID = SHA1(SpreadId .. "||" .. SheetId)
local GUID = SHA1(SpreadId .. "||" .. SheetId :: string)

local ChangedEvent = Instance.new("BindableEvent")

Expand All @@ -272,6 +272,7 @@ function SheetValues.new(SpreadId: string, SheetId: string?)

_ValueChangeEvents = {},
_DataStore = DatastoreService:GetDataStore(GUID, "SheetValues"),
_MessageListener = nil,
_Alive = true,
}

Expand Down Expand Up @@ -328,7 +329,7 @@ function SheetValues.new(SpreadId: string, SheetId: string?)
Url = string.format(
"https://docs.google.com/spreadsheets/d/%s/gviz/tq?tqx=out:json&headers=1&gid=%s",
SpreadId,
SheetId
SheetId :: string
),
Method = "GET",
Headers = {},
Expand Down

0 comments on commit bdff393

Please sign in to comment.