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
Some getter/setters in the project should generate errors with TS2380 and stop compilation. The errors correctly surface when using sai-js as a dependency:
../sai-js/packages/data-model/dist/cjs/crud/resource.d.ts:18:9 - error TS2380: The return type of a 'get' accessor must be assignable to its 'set' accessor type
Type 'undefined' is not assignable to type 'string'.
18 get registeredWith(): string | undefined;
~~~~~~~~~~~~~~
We should
Identify why our build process (lerna run build) is not raising this errors
Fix all the instances where the type mismatch happens.
The text was updated successfully, but these errors were encountered:
We are looking into that, so far setting "skipLibCheck": false in the depended helps avoid compilation errors.
There seem to be some valid use cases where the getter can return undefined but the setter should be more strict (e.g. updatedAt is undefined until set on the first update). There are few relevant TS issues:
Some getter/setters in the project should generate errors with TS2380 and stop compilation. The errors correctly surface when using sai-js as a dependency:
We should
lerna run build
) is not raising this errorsThe text was updated successfully, but these errors were encountered: