Also, today I learned that this isn't allowed in Typescript:
class D extends C {
/** @param {C} c */
m(c) { c.x }
}
^
Property 'x' is only accessible through an instance of class 'D'.
I rarely use classes, so this rule was a surprise to me.
-
-
Prikaži ovu nit
-
`this.x` is fine in the same method. Anyway, if you *do* use classes in JS a lot, try out typescript@next and let me know what you think.
Prikaži ovu nit
Kraj razgovora
Novi razgovor -
-
-
Awesome! Will this jsdoc work for TS as well? ( I'm avoiding private/protected keywords as it's a lie )
-
- Još 2 druga odgovora
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.