Skip to content

Commit

Permalink
chore: tweak spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Caele committed Jan 20, 2021
1 parent 734a397 commit 60bb3ab
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
5 changes: 3 additions & 2 deletions apis/conversion/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ export const convertTo = async ({ halo, model, cellRef, newType }) => {
*/

/**
* @module conversion
* @interface
* @alias Conversion
* @experimental
* @description Provides conversion functionality to extensions
* @example
Expand All @@ -102,7 +103,7 @@ export const convertTo = async ({ halo, model, cellRef, newType }) => {
* }
*
*/
const conversion = /** @lends conversion */ {
const conversion = {
/**
* @type {hyperCubeConversion}
* @experimental
Expand Down
26 changes: 14 additions & 12 deletions apis/stardust/api-spec/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,6 @@
}
}
},
"conversion": {
"description": "Provides conversion functionality to extensions",
"stability": "experimental",
"kind": "module",
"entries": {},
"examples": [
"import { conversion } from '@nebula.js/stardust';\n\nexport default function() {\n return {\n qae: {\n ...\n importProperties: ( exportFormat, initialProperties ) => conversion.hyperCube.importProperties(exportFormat, initialProperties),\n exportProperties: ( fullPropertyTree ) => conversion.hyperCube.exportProperties(fullPropertyTree)\n },\n ...\n };\n}"
]
},
"onTakeSnapshot": {
"description": "Registers a callback that is called when a snapshot is taken.",
"kind": "function",
Expand Down Expand Up @@ -578,10 +569,21 @@
}
}
},
"conversion.hypercube": {
"description": "Provides conversion functionality for extensions with hyperCubes",
"Conversion": {
"description": "Provides conversion functionality to extensions",
"stability": "experimental",
"type": "#/definitions/hyperCubeConversion"
"kind": "interface",
"params": [],
"entries": {
"hypercube": {
"description": "Provides conversion functionality for extensions with hyperCubes",
"stability": "experimental",
"type": "#/definitions/hyperCubeConversion"
}
},
"examples": [
"import { conversion } from '@nebula.js/stardust';\n\nexport default function() {\n return {\n qae: {\n ...\n importProperties: ( exportFormat, initialProperties ) => conversion.hyperCube.importProperties(exportFormat, initialProperties),\n exportProperties: ( fullPropertyTree ) => conversion.hyperCube.exportProperties(fullPropertyTree)\n },\n ...\n };\n}"
]
},
"ConversionType": {
"stability": "experimental",
Expand Down

0 comments on commit 60bb3ab

Please sign in to comment.