Kenji Imamula

Results 41 comments of Kenji Imamula

You are correct. The transformer seems not working as expected when `keyof` some type passed as a type parameter even though `keyof` provides a union of the prop names of...

The error `TypeError: ts_transformer_keys_1.keys is not a function` means that you have failed to get the custom transformer working during compilation. Could you show me how you are using the...

@martnst Sorry for the late response. If you are using Windows, the issue is probably fixed by [this commit](https://github.com/kimamula/ts-transformer-keys/pull/10/commits/8c6145e1735278280ed5c3a2d56e0c27a31caf91). Please try v0.3.1.

@macbric @martnst I confirmed the following works both on macOS and Windows (with [email protected]). * index.ts ```ts import { keys } from 'ts-transformer-keys'; interface Props { id: string; name: string;...

Hi, I have listed [several ways](https://github.com/kimamula/ts-transformer-keys#how-to-use-the-custom-transformer) of how to use custom transformers in README. Which way are you using?

@tentreescantbeatme Sorry for the late reply. At that time, I also looked into ts-loader implementation and gave up to add support to it as it looked it is not easy...

@tentreescantbeatme [this issue](https://github.com/TypeStrong/ts-loader/issues/860) was fixed and `[email protected]` can provide `ts.Program` to custom transformers, which enables `ts-transformer-keys` to work with `ts-loader`.

@Thanos-Pappas I tested `@angular-builders/custom-webpack` with `ts-transformer-keys` and confirmed `TypeError: Object(...) is not a function` error. I found several issues (such as [this](https://github.com/meltedspark/angular-builders/issues/186) and [this](https://github.com/meltedspark/angular-builders/issues/179)) suggesting that you have to use...

How are you transforming `keys()`? As listed in [README](https://github.com/kimamula/ts-transformer-keys#how-to-use-the-custom-transformer), there are typically 4 ways to transform `keys()`.

Could you provide a reproduction?