Skip to content

Commit

Permalink
fix platform type error
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed Jun 4, 2020
1 parent beee8d2 commit 3d39cd5
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/core/server/http/router/validator/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,7 @@
* under the License.
*/

import {
ValidationError,
Type,
schema,
ObjectType,
TypeOf,
isConfigSchema,
} from '@kbn/config-schema';
import { ValidationError, ObjectType, Type, schema, isConfigSchema } from '@kbn/config-schema';
import { Stream } from 'stream';
import { RouteValidationError } from './validator_error';

Expand Down Expand Up @@ -92,7 +85,7 @@ type RouteValidationResultType<T extends RouteValidationSpec<any> | undefined> =
T extends RouteValidationFunction<any>
? ReturnType<T>['value']
: T extends Type<any>
? TypeOf<T>
? T['type']
: undefined
>;

Expand Down

0 comments on commit 3d39cd5

Please sign in to comment.