How to use the @gooddata/typings.VisualizationObject.isMeasure function in @gooddata/typings

To help you get started, we’ve selected a few @gooddata/typings examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gooddata / gooddata-js / src / DataLayer / converters / toAfmResultSpec.ts View on Github external
return buckets.reduce((result: VisualizationObject.IMeasure[], bucket: VisualizationObject.IBucket) => {
        const measureItems: VisualizationObject.IMeasure[] = bucket.items.filter(
            VisualizationObject.isMeasure,
        );

        return result.concat(measureItems);
    }, []);
}