@tak-ps/node-cot
Version:
Lightweight JavaScript library for parsing and manipulating TAK messages
11 lines (10 loc) • 324 B
TypeScript
import type { Static, TSchema, TUnknown } from '@sinclair/typebox';
export type TypeOpts = {
verbose?: boolean;
default?: boolean;
convert?: boolean;
clean?: boolean;
};
export default class TypeValidator {
static type<T extends TSchema = TUnknown>(type: T, body: unknown, opts?: TypeOpts): Static<T>;
}