Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't compile under ts 5.4.2 #35

Closed
neojski opened this issue Mar 11, 2024 · 0 comments
Closed

Doesn't compile under ts 5.4.2 #35

neojski opened this issue Mar 11, 2024 · 0 comments

Comments

@neojski
Copy link

neojski commented Mar 11, 2024

node_modules/typed-query-selector/parser.d.ts:75:29 - error TS2322: Type 'Split<Trim<Args>>' is not assignable to type 'string | number | bigint | boolean | null | undefined'.
  Type 'unknown' is not assignable to type 'string | number | bigint | boolean | null | undefined'.

75   ? ExpandFunctions<`${L}&${Split<Trim<Args>>}${R}`>
                               ~~~~~~~~~~~~~~~~~

node_modules/typed-query-selector/parser.d.ts:77:29 - error TS2322: Type 'Split<Trim<Args>>' is not assignable to type 'string | number | bigint | boolean | null | undefined'.
  Type 'unknown' is not assignable to type 'string | number | bigint | boolean | null | undefined'.

77   ? ExpandFunctions<`${L}&${Split<Trim<Args>>}${R}`>
                               ~~~~~~~~~~~~~~~~~

node_modules/typed-query-selector/shim.d.ts:9:19 - error TS2344: Type 'ParseSelector<S>' does not satisfy the constraint 'Node'.
  Type 'Element | ExpandAnd<string & ParseSelectorToTagNames<S>, Element>' is not assignable to type 'Node'.
    Type 'ExpandAnd<string & ParseSelectorToTagNames<S>, Element>' is not assignable to type 'Node'.
      Type 'Element | ExpandAndInner<string & ParseSelectorToTagNames<S>, Element, unknown>' is not assignable to type 'Node'.
        Type 'ExpandAndInner<string & ParseSelectorToTagNames<S>, Element, unknown>' is not assignable to type 'Node'.
          Type 'unknown' is not assignable to type 'Node'.

9     ): NodeListOf<ParseSelector<S>>
                    ~~~~~~~~~~~~~~~~

[19:14:49] Found 3 errors. Watching for file changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant