You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TS2322: Type { ref: string[]; } is not assignable to type
Partial<string & ref & val & xpr & function_call & SELECT>
Types of property valueOf are incompatible.
Type () => Object is not assignable to type (() => string) & (() => Object)
Type () => Object is not assignable to type () => string
Type Object is not assignable to type string
Is there an existing issue for this?
Current Behavior
Example:
It leads to:
Expected Behavior
No TypeScript issues.
References
No references.
Versions
@cap-js/cds-typer: 0.15.0
@cap-js/sqlite: 1.2.1
@sap/cds: 7.5.3
@sap/cds-compiler: 4.0.2
@sap/cds-dk: 7.5.1
@sap/cds-dk (global): 7.3.1
@sap/cds-fiori: 1.1.0
@sap/cds-foss: 4.0.2
@sap/cds-mtxs: 1.14.2
@sap/eslint-plugin-cds: 2.6.4
Node.js: v18.18.2
Anything else? Logs?
As I got, the issue is due to this line:
Which is incorrect, because this intersection allows only
string
-like values. I suppose the value should be_xpr
as it was defined in past.The text was updated successfully, but these errors were encountered: