-1

Installed and followed Quickstart instructions of ngx-mask for app.module.ts:

import { NgxMaskModule, IConfig } from 'ngx-mask'

export const options: Partial<IConfig> | (() => Partial<IConfig>) = null;

@NgModule({
  imports: [
    NgxMaskModule.forRoot(),
  ],
})

ng serve returns

error TS2322: Type 'null' is not assignable to type 'Partial | (() => Partial)'.

enter image description here

Angular v14, node 14.19

Jeb50
  • 6,272
  • 6
  • 49
  • 87

1 Answers1

0

Solution: Partial<IConfig> --> Partial<null|IConfig>

Jeb50
  • 6,272
  • 6
  • 49
  • 87