config-loader: enable validation of required props in d.ts definitions + fix issues
This commit is contained in:
@@ -150,7 +150,10 @@ function compileTsSchemas(currentDir: string, paths: string[]) {
|
||||
// All schemas should export a `Config` symbol
|
||||
'Config',
|
||||
// This enables usage of @visibility is doc comments
|
||||
{ validationKeywords: ['visibility'] },
|
||||
{
|
||||
required: true,
|
||||
validationKeywords: ['visibility'],
|
||||
},
|
||||
[schemaFile],
|
||||
) as JsonObject | null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user