Skip to content

Commit

Permalink
export some promise helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
moshest committed May 18, 2020
1 parent e84ea86 commit 020f006
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,27 @@ import {
SchemaValidatorFunction,
} from './schema/io';
import { ValidationError, PathError } from './schema/errors';
import { isPromiseLike, ResolvedValue } from './schema/utils';

// type generator
export type Type<S> = SchemaResolveType<S>;

// type helpers
export {
ValidationError,
PathError,
SchemaParameters,
MergeSchemaParameters,
SchemaReturnType,
SchemaValidatorFunction,
ResolvedValue,
};

// runtime schema
export default Schema;

// runtime types
export { unknown, object, array, string, number, boolean };

// runtime helpers
export { isPromiseLike };

0 comments on commit 020f006

Please sign in to comment.