UNPKG

496 BTypeScriptView Raw
1import * as KernelMessage from './messages';
2import { IModel } from './restapi';
3/**
4 * Validate a kernel message object.
5 */
6export declare function validateMessage(msg: KernelMessage.IMessage): asserts msg is KernelMessage.IMessage;
7/**
8 * Validate a `Kernel.IModel` object.
9 */
10export declare function validateModel(model: IModel): asserts model is IModel;
11/**
12 * Validate an array of `IModel` objects.
13 */
14export declare function validateModels(models: IModel[]): asserts models is IModel[];