typescript@next now supports @private and @protected in Javascript files. They work the same as in TS:
class C {
/** @protected */
x = 1
}
-
Prikaži ovu nit
-
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.1 reply 0 proslijeđenih tweetova 2 korisnika označavaju da im se sviđaPrikaž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.
09:14 - 19. pro 2019.
0 replies
0 proslijeđenih tweetova
2 korisnika označavaju da im se sviđa
Č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.