Skip to content

Commit 70c7ad7

Browse files
Merge pull request #8 from hipstersmoothie/hipstersmoothie-patch-2
Handle no options passed in
2 parents 4222df8 + 97e5556 commit 70c7ad7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export default class DocgenPlugin {
131131
private name = "React Docgen Typescript Plugin";
132132
private options: PluginOptions;
133133

134-
constructor(options: PluginOptions) {
134+
constructor(options: PluginOptions = {}) {
135135
this.options = options;
136136
}
137137

0 commit comments

Comments
 (0)