ts2hx icon indicating copy to clipboard operation
ts2hx copied to clipboard

support declaration merging

Open nadako opened this issue 10 years ago • 3 comments

Subj. Somehow. Gotta read the spec about how does it work. :wink:

nadako avatar Mar 10 '15 22:03 nadako

that will be fun ;)

frabbit avatar Mar 10 '15 22:03 frabbit

It shouldn't be that hard once someone figures out how it actually works.

Simn avatar Mar 10 '15 22:03 Simn

https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md#72-declaration-merging

looks like that we should simply merge fields in a structure, there's no specific rules about usage of types between duplicate declarations and it's always resolved to a merged type: http://bit.ly/1B4yvE8

nadako avatar Mar 11 '15 15:03 nadako