Closed 38elements closed 2 years ago
Totals | |
---|---|
Change from base Build 3069266852: | 0.0% |
Covered Lines: | 231 |
Relevant Lines: | 231 |
this ruins value
which is the only field that matters ... see https://github.com/WebReflection/usignal/blob/main/types/index.d.ts#L7-L17
why do you think this is relevant or needed?
I am sorry. I may understand problem correctly. The problem is these lines. Computed
and Reactive
have value
property. Signal
does not have value
property. It have _
propery. I do not know how to resolve it by using JSDoc annotations.
I can only come up with the following solution.
Stopping generating index.d.ts
by tsc -p .
. Creating index.d.ts
by manualy.
that's what the sed command does ... so I am generatig index.d.ts and patching after, and it seems to work well.
Thank you for reply. I think your current method is correct. I apologize for wasting your time.
This added
@protected
toSignal._
, sinceSignal._
is used within subclass. https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html#property-modifiers