Skip to content

Commit

Permalink
Fixed ModelSet export
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishamm committed Jan 31, 2023
1 parent 452e320 commit 8dabd41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@duet3d/objectmodel",
"version": "3.5.0-beta.21",
"version": "3.5.0-beta.22",
"description": "TypeScript implementation of the Duet3D Object Model",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 3 additions & 1 deletion src/ModelSet.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/**
* Wrapper around a standard set to make sure it serializes to an array
*/
export default class ModelSet<T> extends Set<T> {
export class ModelSet<T> extends Set<T> {
/**
* Convert this object to JSON
* @returns JSON object
*/
toJSON() { return Array.from(this); }
}

export default ModelSet

0 comments on commit 8dabd41

Please sign in to comment.