fix(ui): TS2345 в DictionaryEditorDialog#449 — narrow unknown
This commit is contained in:
@@ -790,9 +790,12 @@ export type SchemaTemplateSummary = {
|
||||
tags: string[]
|
||||
}
|
||||
|
||||
/** Full schema template c JSON Schema body (lazy fetch when user picks). */
|
||||
/** Full schema template c JSON Schema body (lazy fetch when user picks).
|
||||
* schemaJson — curated server-side, прошёл валидацию при загрузке
|
||||
* template'а; здесь типизируем как JsonSchema чтобы parseSchemaJson
|
||||
* и downstream-консьюмеры не падали на TS2345 от unknown. */
|
||||
export type SchemaTemplateDetail = SchemaTemplateSummary & {
|
||||
schemaJson: unknown
|
||||
schemaJson: JsonSchema
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user