Typescript generates declaration d.ts file with `#private;` field

前端 未结 3 1834
心在旅途
心在旅途 2021-01-12 13:08

I have a library, written in Typescript, that is being distributed in 2 files: a compiled ECMAScript-2015 compatible Javascript file index.js and a Typescript d

3条回答
  •  轮回少年
    2021-01-12 13:35

    #private syntax is currently a stage-3 proposal for javascript. Once browsers support it then it won't be transpiled by typescript.

提交回复
热议问题