Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 9375486

Browse files
authored
fix: use appropriate readonly for Generable interface (#168)
TS interfaces do not actually support the `get`-syntax, and instead should define the property as `readonly` if there is only a getter expected. The usage of `get`/`set` is otherwise left as an implementation detail, not an type definition.
1 parent f1567a3 commit 9375486

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/Components/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ export interface Generable {
1818
/**
1919
* Type of generable object
2020
*/
21-
get generableType(): GenerableType;
21+
readonly generableType: GenerableType;
2222
}

0 commit comments

Comments
 (0)