typewind icon indicating copy to clipboard operation
typewind copied to clipboard

Arbitrary values with noUncheckedIndexedAccess

Open fenok opened this issue 1 year ago • 0 comments

When noUncheckedIndexedAccess is enabled, arbitrary values like tw.after(tw.content_["'Hi'"]) throw the following error: Argument of type 'Property | undefined' is not assignable to parameter of type 'Property'..

This is expected, and should be fixable by non-null assertion operator: tw.after(tw.content_["'Hi'"]!).

However, in this case, I get a compilation error (from postcss-loader):

    let result$$ = tw.after(tw.content_["'Hi'"]!);
                                              ^

  SyntaxError: missing ) after argument list

Am I missing something?

fenok avatar Mar 03 '23 17:03 fenok