mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-04-22 14:19:41 +00:00
feat: enable stricter typescript compiler options
This commit is contained in:
@@ -149,8 +149,8 @@ class LightweightDefinitionBuilder {
|
||||
indexSignature.type,
|
||||
),
|
||||
indexSignatureType: this.lightweightTypeFromType(
|
||||
this.typeChecker.getTypeFromTypeNode(indexSignature.parameters[0].type!),
|
||||
indexSignature.parameters[0].type!,
|
||||
this.typeChecker.getTypeFromTypeNode(indexSignature.parameters[0]?.type!),
|
||||
indexSignature.parameters[0]?.type!,
|
||||
),
|
||||
}),
|
||||
),
|
||||
@@ -253,6 +253,6 @@ class LightweightDefinitionBuilder {
|
||||
* Same as conversion, but generates a simple list of all definitions.
|
||||
*/
|
||||
convertToList(): LightweightDefinition[] {
|
||||
return Object.values(this.convert()).flatMap(it => it.values);
|
||||
return Object.values(this.convert()).flatMap(it => it['values']!);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user