docs: function definePipe(pipeDef) {
      return {
          name: pipeDef.name,
          factory: pipeDef.factory,
          pure: pipeDef.pure !== false,
          onDestroy: pipeDef.type.prototype.ngOnDestroy || null
      };
  }