jeudi 29 juillet 2021

In Angular, makeDecorator use noSideEffects. What will be the impact if this noSideEffects is not used?

Here is the code.

export function noSideEffects<T>(fn: () => T): T {
  return {toString: fn}.toString() as unknown as T;
}



Aucun commentaire:

Enregistrer un commentaire