MuYunyun
MuYunyun
> 你好, > > ```ts > type A = { a: string } > type B = { readonly a: string } > type C = Equal1 // true >...
> 云云牛批,云云能否解释下Equal2的工作原理,以前有个大佬在知乎回答过,但现在他删答案了,找不到了 细节可以参考这篇 [How does the `Equals` work in typescript?](https://stackoverflow.com/questions/68961864/how-does-the-equals-work-in-typescript/68963796#68963796),暂时没有精力深究 ts 源码 😄
- [ ] adjust test case - [ ] monorepo
这么多方案名词会绕晕, 能把它们理清也是不易。膜拜
@mikhailrojo the simply code of `Reflect.defineMetadata(metadataKey, metadataValue, target[, propertyKey])` as follow: ```js const Metadata = new WeakMap() function defineMetadata(metadataKey, metadataValue, target, propertyKey) { metadataMap = new Map() metadataMap.set(metadataKey, metadataValue) targetMetadata...
It seems the browser has implemented the Reflect Object.  I wonder the ECMA proposals `reflect-metadata` follow isn't the same as the `Reflect` in the browser(chrome), for example, it has...
Thanks, I understand. I think the refect-metadate is a friendly api with decorate, is it?
@gajus I'm not sure how to configure the context in the .babelrc, Can you provide a demo ? Thanks.
It's said the context is only to configure in the `webpack`, not in the `.babelrc`, is right ?
Thanks for explaining. It seems there is bug using webpack4. I've configured the context in the webpack. Howver the xx_xx_xxxxx can't be found in the . ```html 123 ; ```