Comments (4)
@chrisd08 expected output here is:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var TestMappedClass = /** @class */ (function () {
function TestMappedClass() {
this._private_testMapped = {};
this._private_testMapped.a = {};
}
return TestMappedClass;
}());
am I right (don't rename a
)?
from ts-transformer-properties-rename.
@timocov Yes that's correct
from ts-transformer-properties-rename.
Fixed in 74ed470. If a mapped type is exported, you don't need to mark it as public now. But anyway, if a mapped type isn't exported, you can mark the whole type as public in this case (instead of indexer or property keys) (see added test cases for the reference).
from ts-transformer-properties-rename.
The fix is just published in 0.8.0 version. Let me know if you have any further issues.
from ts-transformer-properties-rename.
Related Issues (20)
- Add errors/warning where we're sure that an error could be HOT 7
- Enums are not renamed causing runtime error
- Constructor parameters in internal classes get prefixed. HOT 2
- Add loose mode
- Incorrect handling mapped types
- [feature] Lazily resolve TS Program HOT 9
- Handle object literals with "erased" type HOT 1
- Error: Cannot find source file HOT 5
- Wrong code for indexed generic in returned type
- Incorrect handling unknown/any casting
- Return type of public function is marked as internal HOT 1
- An object with quoted keys is not minified
- Properly handle class members with decorators HOT 2
- Fields declared with `declare` keyword are renamed but shouldn't
- Improvde DX and migration from `ts-transformer-minify-privates`
- Incorrect handing `in` operator with string literal
- Handle Internal Class renames HOT 7
- Getters/Setters with Object.defineProperty HOT 7
- Computed or Invalid property names HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ts-transformer-properties-rename.