https://github.com/angular/angular
Raw File
Tip revision: 85e95cc32ba4e7d1093f236f3f2bdec508e481d7 authored by Matias Niemelä on 28 October 2017, 06:31:35 UTC
docs: add changelog for 5.0.0-rc.8
Tip revision: 85e95cc
invalid_pipe_argument_error.ts
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */

import {Type, ɵstringify as stringify} from '@angular/core';

export function invalidPipeArgumentError(type: Type<any>, value: Object) {
  return Error(`InvalidPipeArgument: '${value}' for pipe '${stringify(type)}'`);
}
back to top