Merge pull request #1936 from paulpach/patch-1

This is supposed to be optional
This commit is contained in:
Patrik Oldsberg
2020-08-13 00:22:50 +02:00
committed by GitHub
+1 -1
View File
@@ -98,7 +98,7 @@ A good pattern for reading optional configuration values is to use the `??`
operator. For example:
```ts
const title = config.getString('my-plugin.title') ?? 'My Plugin';
const title = config.getOptionalString('my-plugin.title') ?? 'My Plugin';
```
To read required configuration, simply use the methods without `Optional`, for