Menu

Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.

Enterprise Open source

SynchronousDataTransformerInfo interface

Many transformations can be called with a simple synchronous function. When a transformer is defined, it should have identical behavior to using the operator

Signature

typescript
export interface SynchronousDataTransformerInfo<TOptions = any> extends DataTransformerInfo<TOptions> 

Import

typescript
import { SynchronousDataTransformerInfo } from '@grafana/data';

Properties

PropertyTypeDescription
transformer(options: TOptions) => (frames: DataFrame[]) => DataFrame[]

transformer property

Signature

typescript
transformer: (options: TOptions) => (frames: DataFrame[]) => DataFrame[];