/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the Source EULA. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ export function defaultFormatter(valueProperty: keyof T): Slick.Formatter { return (row: number, cell: number, value: any, columnDef: Slick.Column, dataContext: Slick.SlickData): string => { return value[valueProperty]; }; }