aikmandean / st

Based on tate-state from June 12th, 2022

Home Page:https://aikmandean.github.io/hwyblvd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Always interpreting an object as optional

JosiahLeas opened this issue · comments

const Ticker = defineProp({ symbol: "", pingsCount: 0 })

const logTicker = fn(props => {
    props.ticker.pingsCount // <-- .ticker is object | undefined
}, { Ticker })

image

I see the issue Josiah, also I am thinking it's part of the TypeScript / Optional feature. I'll create a branch for this.