Skip to content

Commit

Permalink
exported more types so that the lib is actually useable
Browse files Browse the repository at this point in the history
  • Loading branch information
Cylop committed Oct 4, 2023
1 parent 26a77bd commit f0eb810
Show file tree
Hide file tree
Showing 2 changed files with 10 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": "immuview",
"version": "1.0.1",
"version": "1.0.2",
"description": "A library for creating immutable views of objects and arrays.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
10 changes: 9 additions & 1 deletion src/ImmuView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,12 @@ const readonly = <T>(
return { value: proxy, internalSet };
};

export { readonly, DirectMutationError, ValidationError };
export {
readonly,
DirectMutationError,
ValidationError,
ErrorHandler,
ReadonlyState,
Validator,
ReadonlyStateOptions,
};

0 comments on commit f0eb810

Please sign in to comment.