cancel
Showing results for 
Search instead for 
Did you mean: 

cds-ts ignores tsconfig,json

fshestov
Explorer
0 Kudos

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?
Thanks

daniel_ogrady
Explorer

Hi Fedor,

good catch! This is actually a quirk in cds-ts watch and will be addressed shortly in an upcoming release, which should hopefully cover both your questions.

Best,
Daniel

Accepted Solutions (0)

Answers (0)