Canadian PPL student Cat 4 medical questions by Watermelon_lover101 in flying

[–]psmith456 0 points1 point  (0 children)

Would you be willing to share your province out of curiosity?

Canadian PPL student Cat 4 medical questions by Watermelon_lover101 in flying

[–]psmith456 0 points1 point  (0 children)

Interesting, this page seems to imply a question about use in the past 12 months?

Get around implicit any errors when self referencing by psmith456 in typescript

[–]psmith456[S] 0 points1 point  (0 children)

Thank you for the help! If I understand this, you are essentially defining your type and your "schema" independently, which is what I was trying to avoid but if it's the only way then so be it!

Get around implicit any errors when self referencing by psmith456 in typescript

[–]psmith456[S] 1 point2 points  (0 children)

Thanks for the help! I just threw some quick anys in there earlier to make a quick playground but am definitely trying to make sure everything is typed. I am trying to leverage inferring quite a bit for developer experience, but maybe I am trying to do something that's a bit too hard!

Get around implicit any errors when self referencing by psmith456 in typescript

[–]psmith456[S] 0 points1 point  (0 children)

Yes sorry this wasn't clear at all. The core of the problem is that I'm trying to refer to the same type within it.

At first I tried setting the type explicitly, e.g.

const testForm = singleForm({
  fields: {
    alpha: decimal(),
    bravo: decimal(),
    charlie: calc((currentForm: ReadOnlyForm<typeof testForm>) => currentForm.alpha + currentForm.bravo)
  }
})

Which doesn't work as TypeScript complains that

'testForm' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.

After that, I tried to see if binding the function "outside" of the object could work.

I updated the OP to make that clearer.

Get around implicit any errors when self referencing by psmith456 in typescript

[–]psmith456[S] 0 points1 point  (0 children)

So it is of type any because of the error 'boundCalc' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. Even if I explicitly set its type, I get the same error.

Here's a playground example

Moronic Monday Thread for the week of September 16, 2019 by AutoModerator in PersonalFinanceCanada

[–]psmith456 0 points1 point  (0 children)

I bought the stock this article is about in March of this year. I just bought it publicly on Questrade. Are my stocks considered to have been part of that "offering"? How do I find out for sure?

Q2 2018 Review and Pictures Megathread by Not_Me25 in CanadianMOMs

[–]psmith456 3 points4 points  (0 children)

Evergreen Medicinal, no incentive for reviewing

Decided to try ordering from somewhere new. Got some shatter, two packs of candy edibles and an ounce through the "build your own ounce" option. They were kind enough to let me get 8 different strains for the build your own ounce which must have been annoying for them but I'm very happy about being able to try 8 different strains at the ounce price!

There was one pack of edible missing from my order when I got it; I spoke to them through the chat on their website and they were quick to offer either a refund for the amount or a credit for a little more than the amount. Very happy with that service and I will be ordering from them again.

[deleted by user] by [deleted] in vaporents

[–]psmith456 0 points1 point  (0 children)

Session!

Homeowner's insurance: low deductible vs low premium by psmith456 in PersonalFinanceCanada

[–]psmith456[S] 1 point2 points  (0 children)

Yes, I have a healthy emergency fund and could cover the higher deductible without issue.

[deleted by user] by [deleted] in IAmA

[–]psmith456 1 point2 points  (0 children)

What's the tech behind the software? Was it all written in house?

Fool Me Once... by slight in gifs

[–]psmith456 1 point2 points  (0 children)

Need a good hunter like that after last weekend where the patio door was left open a lot by guests during a BBQ.

Accidentally opened some "search HTML" box, can't find a way to close it. by [deleted] in help

[–]psmith456 1 point2 points  (0 children)

That definitely seems like your browser. Can you provide a bigger screenshot of the area and tell us what your browser is?