@neverblink/linkml 0.12.2 → 0.13.0
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.
- package/index.d.ts +10 -0
- package/main.js +47416 -45810
- package/main.js.map +4 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -101,6 +101,16 @@ export interface LinkMLApi {
|
|
|
101
101
|
*/
|
|
102
102
|
graphQl(schema: SchemaView, pruningMode?: string, treeRoot?: string): string;
|
|
103
103
|
|
|
104
|
+
/**
|
|
105
|
+
* Generate a Mermaid entity relationship diagram from a loaded LinkML schema. Classes become entities, type- and enum-ranged slots become their attributes, and class-ranged slots become relationship lines.
|
|
106
|
+
* @param schema A [[SchemaView]] handle created with [[loadFromString]] or [[loadFromPath]].
|
|
107
|
+
* @param pruningMode Pruning mode to use for removing unused elements (classes, types, enums). One of treeRoot|schema|skip. treeRoot - remove all elements unreachable from the tree_root class. schema - remove all elements unreachable from any of the classes defined in the root schema. skip - do not remove unused elements. Default: treeRoot
|
|
108
|
+
* @param treeRoot Tree root class name to use instead of the schema defined tree_root.
|
|
109
|
+
* @param optionalMarker Whether to mark optional attributes with a trailing '?' on their type. Mermaid understands this from version 11.16 onwards, older renderers throw an error instead. Default: true
|
|
110
|
+
* @returns The ER diagram, serialized as Mermaid
|
|
111
|
+
*/
|
|
112
|
+
erDiagram(schema: SchemaView, pruningMode?: string, treeRoot?: string, optionalMarker?: boolean): string;
|
|
113
|
+
|
|
104
114
|
/**
|
|
105
115
|
* Lint a loaded LinkML schema, finding problems that may cause issues when using the model. This method returns a structured JSON that follows the validation-report.yaml model. TODO: consider typing the return value in TypeScript using a TypeScript generator. See: https://github.com/NeverBlink-OSS/linkml-scala/issues/127
|
|
106
116
|
* @param schema A [[SchemaView]] handle created with [[loadFromString]] or [[loadFromPath]].
|