You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,12 @@ module.exports = {
71
71
72
72
(If you're wondering why the configuration sits within a "default" property, that's to allow for [Profiles](./profiles.md).)
73
73
74
+
### Type checking
75
+
76
+
If you want to type check your configuration, we export two types that can help with that:
77
+
-`IProfiles` represents the dictionary of profile names to configuration objects exported for CommonJS
78
+
-`IConfiguration` represents a single configuration object exported with named exports for ESM (`Partial<IConfiguration>` will be more useful in practise)
79
+
74
80
## Options
75
81
76
82
These options can be used in a configuration file (see [above](#files)) or on the [CLI](./cli.md), or both.
0 commit comments