mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-19 17:58:43 -05:00
fix: type error for properties in QAEDefinition (#1687)
This commit is contained in:
@@ -2531,12 +2531,42 @@
|
||||
"type": "#/definitions/ExportFormat"
|
||||
}
|
||||
},
|
||||
"onPropertyChange": {
|
||||
"kind": "function",
|
||||
"params": [
|
||||
{
|
||||
"name": "properties",
|
||||
"type": "qix.GenericObjectProperties"
|
||||
}
|
||||
]
|
||||
},
|
||||
"QAEProperties": {
|
||||
"kind": "interface",
|
||||
"entries": {
|
||||
"initial": {
|
||||
"optional": true,
|
||||
"type": "qix.GenericObjectProperties"
|
||||
},
|
||||
"onChange": {
|
||||
"optional": true,
|
||||
"type": "#/definitions/onPropertyChange"
|
||||
}
|
||||
}
|
||||
},
|
||||
"QAEDefinition": {
|
||||
"kind": "interface",
|
||||
"entries": {
|
||||
"properties": {
|
||||
"optional": true,
|
||||
"type": "qix.GenericObjectProperties"
|
||||
"kind": "union",
|
||||
"items": [
|
||||
{
|
||||
"type": "#/definitions/QAEProperties"
|
||||
},
|
||||
{
|
||||
"type": "qix.GenericObjectProperties"
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"optional": true,
|
||||
|
||||
9
apis/stardust/types/index.d.ts
vendored
9
apis/stardust/types/index.d.ts
vendored
@@ -795,8 +795,15 @@ declare namespace stardust {
|
||||
hypercubePath: string;
|
||||
})=>stardust.ExportFormat;
|
||||
|
||||
type onPropertyChange = (properties: qix.GenericObjectProperties)=>void;
|
||||
|
||||
interface QAEProperties {
|
||||
initial?: qix.GenericObjectProperties;
|
||||
onChange?: stardust.onPropertyChange;
|
||||
}
|
||||
|
||||
interface QAEDefinition {
|
||||
properties?: qix.GenericObjectProperties;
|
||||
properties?: stardust.QAEProperties | qix.GenericObjectProperties;
|
||||
data?: {
|
||||
targets: stardust.DataTarget[];
|
||||
};
|
||||
|
||||
@@ -23,9 +23,20 @@ const noop = () => {};
|
||||
* @returns {ExportFormat}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @callback onPropertyChange
|
||||
* @param {qix.GenericObjectProperties} properties
|
||||
*/
|
||||
|
||||
/**
|
||||
* @interface QAEProperties
|
||||
* @property {qix.GenericObjectProperties=} initial
|
||||
* @property {onPropertyChange=} onChange
|
||||
*/
|
||||
|
||||
/**
|
||||
* @interface QAEDefinition
|
||||
* @property {qix.GenericObjectProperties=} properties
|
||||
* @property {(QAEProperties|qix.GenericObjectProperties)=} properties
|
||||
* @property {object=} data
|
||||
* @property {DataTarget[]} data.targets
|
||||
* @property {importProperties=} importProperties
|
||||
|
||||
Reference in New Issue
Block a user