https://github.com/angular/angular
Raw File
Tip revision: 04dd9713f090ae7a9710b08b6a23b3619112fb3d authored by Kara Erickson on 10 January 2018, 01:00:17 UTC
docs: add changelog for 5.2.0
Tip revision: 04dd971
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