@tumaet/apollon 4.2.4-alpha.0 → 4.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { UMLModel } from '../typings';
2
- import { V3DiagramFormat, V3UMLElement, V3UMLRelationship, V3Assessment, V3Messages } from './v3Typings';
2
+ import { V3DiagramFormat, V3UMLModel, V3UMLElement, V3UMLRelationship, V3Assessment, V3Messages } from './v3Typings';
3
3
  import { MessageData } from '../edges/EdgeProps';
4
4
  interface V2DiagramFormat {
5
5
  version: string;
@@ -44,7 +44,7 @@ export declare function convertV3MessagesToV4(messages: V3Messages | MessageData
44
44
  /**
45
45
  * Main conversion function from v3 to v4 format
46
46
  */
47
- export declare function convertV3ToV4(v3Data: V3DiagramFormat): UMLModel;
47
+ export declare function convertV3ToV4(v3Data: V3DiagramFormat | V3UMLModel): UMLModel;
48
48
  /**
49
49
  * Check if data is in v3 format
50
50
  */
@@ -56,5 +56,5 @@ export declare function isV4Format(data: any): data is UMLModel;
56
56
  /**
57
57
  * Universal import function that handles v2, v3 and v4 formats
58
58
  */
59
- export declare function importDiagram(data: any): UMLModel;
59
+ export declare function importDiagram(data: any | V3UMLModel): UMLModel;
60
60
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tumaet/apollon",
3
- "version": "4.2.4-alpha.0",
3
+ "version": "4.2.5",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",