Create the toJSON operator in Angular
Netanel Basal

Hi Netanel Basal this is a super awesome idea, thanks very much.

I am trying to implement it but is given me an error, the step I have followed are.

  • Create the type definition and added to tsconfig
  • Create local-opetaror.ts file with the observer extension
  • Implemented in one of the services

But the typescript compiler is given me this error.

Property ‘toJSON’ does not exist on type ‘Observable<Response>’

how ever if I copy the definition in my service it work, any idea?


One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.