@gooddata/typings
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -25,6 +25,7 @@ export declare namespace AFM { | ||
localIdentifier: Identifier; | ||
definition: ISimpleMeasureDefinition | IPopMeasureDefinition; | ||
definition: MeasureDefinition; | ||
alias?: string; | ||
format?: string; | ||
} | ||
type MeasureDefinition = ISimpleMeasureDefinition | IPopMeasureDefinition; | ||
interface ISimpleMeasureDefinition { | ||
@@ -130,2 +131,3 @@ measure: ISimpleMeasure; | ||
function isSimpleMeasureDefinition(definition: AFM.ISimpleMeasureDefinition | AFM.IPopMeasureDefinition): definition is AFM.ISimpleMeasureDefinition; | ||
function isPopMeasureDefinition(definition: AFM.ISimpleMeasureDefinition | AFM.IPopMeasureDefinition): definition is AFM.IPopMeasureDefinition; | ||
function isAttributeSortItem(sortItem: AFM.SortItem): sortItem is AFM.IAttributeSortItem; | ||
@@ -132,0 +134,0 @@ function isMeasureSortItem(sortItem: AFM.SortItem): sortItem is AFM.IMeasureSortItem; |
"use strict"; | ||
// Copyright (C) 2007-2017, GoodData(R) Corporation. All rights reserved. | ||
exports.__esModule = true; | ||
@@ -13,2 +14,6 @@ var AFM; | ||
AFM.isSimpleMeasureDefinition = isSimpleMeasureDefinition; | ||
function isPopMeasureDefinition(definition) { | ||
return !!definition.popMeasure; | ||
} | ||
AFM.isPopMeasureDefinition = isPopMeasureDefinition; | ||
function isAttributeSortItem(sortItem) { | ||
@@ -15,0 +20,0 @@ return !!sortItem.attributeSortItem; |
12
index.ts
@@ -0,1 +1,3 @@ | ||
// Copyright (C) 2007-2017, GoodData(R) Corporation. All rights reserved. | ||
export namespace AFM { | ||
@@ -29,6 +31,8 @@ export interface IExecution { | ||
localIdentifier: Identifier; | ||
definition: ISimpleMeasureDefinition | IPopMeasureDefinition; | ||
definition: MeasureDefinition; | ||
alias?: string; | ||
format?: string; | ||
} | ||
export type MeasureDefinition = ISimpleMeasureDefinition | IPopMeasureDefinition; | ||
@@ -168,2 +172,8 @@ export interface ISimpleMeasureDefinition { | ||
} | ||
export function isPopMeasureDefinition( | ||
definition: AFM.ISimpleMeasureDefinition | AFM.IPopMeasureDefinition | ||
): definition is AFM.IPopMeasureDefinition { | ||
return !!(definition as AFM.IPopMeasureDefinition).popMeasure; | ||
} | ||
@@ -170,0 +180,0 @@ export function isAttributeSortItem(sortItem: AFM.SortItem): sortItem is AFM.IAttributeSortItem { |
{ | ||
"name": "@gooddata/typings", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "TypeScript definition files for GoodData platform", | ||
@@ -5,0 +5,0 @@ "typings": "dist/index.d.ts", |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
20119
496
1