Skip to Content
Apr 14 at 02:59 PM

cds-ts ignores tsconfig,json

458 Views Last edit Apr 14 at 03:34 PM 5 rev

Hi. It looks like cds-ts ignores tsconfig.json. I created an example

class Employee {

name: string;

salary?: number;

tasks?: string[]; }

const d:Employee={ name:'3' };

cds-ts watch --profile hybrid returns Property 'name' has no initializer and is not definitely assigned in the constructor.

even though in tsconfig "strictPropertyInitialization": false

The second question. How to start cds-ts by ignoring ts errors or displaying them as warnings?