This is supposed to be optional

This commit is contained in:
Paul Pacheco
2020-08-12 17:10:51 -05:00
committed by GitHub
parent 65f3f4f95a
commit 88d4e1adf7
+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