--!strict --[[ A common interface for accessing the values of state objects or constants. ]] local PubTypes = require "../PubTypes" local Types = require "../Types" -- State local isState = require "../State/isState" local function peek(target: PubTypes.CanBeState): T if isState(target) then return (target :: Types.StateObject):_peek() end return target end return peek