From 317ea8c275cfcca1049a3029ca002dad81d603f0 Mon Sep 17 00:00:00 2001 From: Robert Serrano Kobylyansky Date: Fri, 16 Feb 2024 16:56:13 +0000 Subject: [PATCH] docs: Add openmct type hints (#7247) * Add setAssetPath method to MCT type information * Add TypeRegistry to OpenMCT typedef --- openmct.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openmct.js b/openmct.js index 521a423d2c..d356db4d97 100644 --- a/openmct.js +++ b/openmct.js @@ -47,7 +47,7 @@ if (document.currentScript) { * @property {*} inspectorViews * @property {*} propertyEditors * @property {*} toolbars - * @property {*} types + * @property {import('./src/api/types/TypeRegistry').default} types * @property {import('./src/api/objects/ObjectAPI').default} objects * @property {import('./src/api/telemetry/TelemetryAPI').default} telemetry * @property {import('./src/api/indicators/IndicatorAPI').default} indicators @@ -67,6 +67,7 @@ if (document.currentScript) { * @property {import('./src/api/annotation/AnnotationAPI').default} annotation * @property {{(plugin: OpenMCTPlugin) => void}} install * @property {{() => string}} getAssetPath + * @property {{(assetPath: string) => void}} setAssetPath * @property {{(domElement: HTMLElement, isHeadlessMode: boolean) => void}} start * @property {{() => void}} startHeadless * @property {{() => void}} destroy