Skip to content

Add strictNullChecks && noUnusedParameters support #614

@paulsouche

Description

@paulsouche

I'm submitting a


[X] Bug / Regression
[ ] Feature Request / Proposal
[ ] Question

I'm using


NG Dynamic Forms Version: `@latest`

[ ] Basic UI
[ ] Bootstrap UI  
[ ] Foundation UI
[ ] Ionic UI
[ ] Kendo UI
[ ] Material  
[X] NG Bootstrap
[ ] Prime NG

Description

I opened long time ago #497 but since 5.0.2 new problems occur:

../../node_modules/@ng-dynamic-forms/core/src/service/dynamic-form-layout.service.d.ts(2,5): error TS2411: Property 'container' of type 'string | undefined' is not assignable to string index type 'string'.
../../node_modules/@ng-dynamic-forms/core/src/service/dynamic-form-layout.service.d.ts(3,5): error TS2411: Property 'control' of type 'string | undefined' is not assignable to string index type 'string'.
../../node_modules/@ng-dynamic-forms/core/src/service/dynamic-form-layout.service.d.ts(4,5): error TS2411: Property 'errors' of type 'string | undefined' is not assignable to string index type 'string'.
../../node_modules/@ng-dynamic-forms/core/src/service/dynamic-form-layout.service.d.ts(5,5): error TS2411: Property 'group' of type 'string | undefined' is not assignable to string index type 'string'.
../../node_modules/@ng-dynamic-forms/core/src/service/dynamic-form-layout.service.d.ts(6,5): error TS2411: Property 'hint' of type 'string | undefined' is not assignable to string index type 'string'.
../../node_modules/@ng-dynamic-forms/core/src/service/dynamic-form-layout.service.d.ts(7,5): error TS2411: Property 'host' of type 'string | undefined' is not assignable to string index type 'string'.
../../node_modules/@ng-dynamic-forms/core/src/service/dynamic-form-layout.service.d.ts(8,5): error TS2411: Property 'label' of type 'string | undefined' is not assignable to string index type 'string'.
../../node_modules/@ng-dynamic-forms/core/src/service/dynamic-form-layout.service.d.ts(9,5): error TS2411: Property 'option' of type 'string | undefined' is not assignable to string index type 'string'.
../../node_modules/@ng-dynamic-forms/core/src/service/dynamic-form-layout.service.d.ts(13,5): error TS2411: Property 'element' of type 'DynamicFormControlLayoutConfig | undefined' is not assignable to string index type 'DynamicFormControlLayoutConfig'.
../../node_modules/@ng-dynamic-forms/core/src/service/dynamic-form-layout.service.d.ts(14,5): error TS2411: Property 'grid' of type 'DynamicFormControlLayoutConfig | undefined' is not assignable to string index type 'DynamicFormControlLayoutConfig'.

This is due to strictNullChecks compiler option. Everything works fine with skipLibCheck: true

Thanks any way for the great job

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions