Skip to content

Commit

Permalink
Merge pull request #63 from kom-senapati/feat/list-models
Browse files Browse the repository at this point in the history
feat: A function to list all models
  • Loading branch information
ZoranPandovski authored Nov 13, 2024
2 parents baf0a22 + d0023ab commit c7a1d0b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/models/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,14 @@ class Model {
);
}

/**
* Lists all models in the project.
* @returns {Array<Model>} - All models in the project.
*/
listModels(): Promise<Array<Model>> {
return this.modelsApiClient.getAllModels(this.project);
}

/**
* Describes an attribute of this model.
* @param {string} attribute - The attribute to describe.
Expand Down

0 comments on commit c7a1d0b

Please sign in to comment.