Why does Typescript use the keyword “export” to make classes and interfaces public?

The primary reason is that export matches the plans for ECMAScript. You could argue that “they should have used “export” instead of “public”, but asides from “export/private/protected” being a poorly matched set of access modifiers, I believe there is a subtle difference between the two that explains this. In TypeScript, marking a class member as … Read more

What is the difference between ‘protected’ and ‘protected internal’?

The “protected internal” access modifier is a union of both the “protected” and “internal” modifiers. From MSDN, Access Modifiers (C# Programming Guide): protected: The type or member can be accessed only by code in the same class or struct, or in a class that is derived from that class. internal: The type or member can … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)