@gooddata/typings
Advanced tools
Comparing version 0.0.1 to 0.0.2-lhorak-form-of-attribute-2017-11-23T14-33-22-336Z
@@ -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; | ||
@@ -163,2 +165,7 @@ function isMeasureSortItem(sortItem: AFM.SortItem): sortItem is AFM.IMeasureSortItem; | ||
totalItems?: ITotalHeaderItem[]; | ||
formOf: { | ||
uri: string; | ||
identifier: string; | ||
name: string; | ||
}; | ||
}; | ||
@@ -165,0 +172,0 @@ } |
"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; |
17
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; | ||
} | ||
@@ -214,2 +224,7 @@ export function isAttributeSortItem(sortItem: AFM.SortItem): sortItem is AFM.IAttributeSortItem { | ||
totalItems?: ITotalHeaderItem[]; | ||
formOf: { | ||
uri: string; | ||
identifier: string; | ||
name: string; | ||
}; | ||
} | ||
@@ -216,0 +231,0 @@ } |
{ | ||
"name": "@gooddata/typings", | ||
"version": "0.0.1", | ||
"version": "0.0.2-lhorak-form-of-attribute-2017-11-23T14-33-22-336Z", | ||
"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
20433
506