@@ -42,6 +42,7 @@ import {BINARY_DATA_IN_PLAIN_TEXT_DISPLAY} from '../utils/constants';
4242import { parseMetaCluster } from './parsers/parseMetaCluster' ;
4343import { parseMetaTenants } from './parsers/parseMetaTenants' ;
4444import { settingsManager } from './settings' ;
45+ import { Nullable } from '../utils/typecheckers' ;
4546
4647type AxiosOptions = {
4748 concurrentId ?: string ;
@@ -179,7 +180,7 @@ export class YdbEmbeddedAPI extends AxiosWrapper {
179180 } ) ;
180181 }
181182 getSchema ( { path} : { path : string } , { concurrentId} : AxiosOptions = { } ) {
182- return this . get < TEvDescribeSchemeResult > (
183+ return this . get < Nullable < TEvDescribeSchemeResult > > (
183184 this . getPath ( '/viewer/json/describe' ) ,
184185 {
185186 path,
@@ -195,7 +196,7 @@ export class YdbEmbeddedAPI extends AxiosWrapper {
195196 ) ;
196197 }
197198 getDescribe ( { path} : { path : string } , { concurrentId} : AxiosOptions = { } ) {
198- return this . get < TEvDescribeSchemeResult > (
199+ return this . get < Nullable < TEvDescribeSchemeResult > > (
199200 this . getPath ( '/viewer/json/describe' ) ,
200201 {
201202 path,
@@ -216,7 +217,7 @@ export class YdbEmbeddedAPI extends AxiosWrapper {
216217 ) ;
217218 }
218219 getHeatmapData ( { path} : { path : string } ) {
219- return this . get < TEvDescribeSchemeResult > ( this . getPath ( '/viewer/json/describe' ) , {
220+ return this . get < Nullable < TEvDescribeSchemeResult > > ( this . getPath ( '/viewer/json/describe' ) , {
220221 path,
221222 enums : true ,
222223 backup : false ,
@@ -393,7 +394,7 @@ export class YdbEmbeddedAPI extends AxiosWrapper {
393394 ) ;
394395 }
395396 getTabletDescribe ( tenantId : TDomainKey ) {
396- return this . get < TEvDescribeSchemeResult > ( this . getPath ( '/viewer/json/describe' ) , {
397+ return this . get < Nullable < TEvDescribeSchemeResult > > ( this . getPath ( '/viewer/json/describe' ) , {
397398 schemeshard_id : tenantId ?. SchemeShard ,
398399 path_id : tenantId ?. PathId ,
399400 } ) ;
0 commit comments