kibana/packages/kbn-io-ts-utils/index.ts
Luke Elmers b6287708f6
Adds AGPL 3.0 license (#192025)
Updates files outside of x-pack to be triple-licensed under Elastic
License 2.0, AGPL 3.0, or SSPL 1.0.
2024-09-06 19:02:41 -06:00

45 lines
1.9 KiB
TypeScript

/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the "Elastic License
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
* Public License v 1"; you may not use this file except in compliance with, at
* your election, the "Elastic License 2.0", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
export type { IndexPattern } from './src/index_pattern_rt';
export type { NonEmptyString, NonEmptyStringBrand } from './src/non_empty_string_rt';
export { arrayToStringRt } from './src/array_to_string_rt';
export { deepExactRt } from './src/deep_exact_rt';
export { indexPatternRt } from './src/index_pattern_rt';
export { jsonRt } from './src/json_rt';
export { mergeRt } from './src/merge_rt';
export { strictKeysRt } from './src/strict_keys_rt';
export { isoToEpochRt } from './src/iso_to_epoch_rt';
export { isoToEpochSecsRt } from './src/iso_to_epoch_secs_rt';
export { toNumberRt } from './src/to_number_rt';
export { toBooleanRt } from './src/to_boolean_rt';
export { toJsonSchema } from './src/to_json_schema';
export { nonEmptyStringRt } from './src/non_empty_string_rt';
export { createLiteralValueFromUndefinedRT } from './src/literal_value_from_undefined_rt';
export { createRouteValidationFunction } from './src/route_validation';
export { inRangeRt, type InRangeBrand, type InRange, inRangeFromStringRt } from './src/in_range_rt';
export { dateRt } from './src/date_rt';
export {
isGreaterOrEqualRt,
type IsGreaterOrEqualBrand,
type IsGreaterOrEqual,
} from './src/is_greater_or_equal';
export { datemathStringRt } from './src/datemath_string_rt';
export { createPlainError, decodeOrThrow, formatErrors, throwErrors } from './src/decode_or_throw';
export {
DateFromStringOrNumber,
minimalTimeKeyRT,
type MinimalTimeKey,
type TimeKey,
type UniqueTimeKey,
} from './src/time_key_rt';