Skip to content

Commit

Permalink
fix(types): use type import/export (#1238)
Browse files Browse the repository at this point in the history
fixed rollup build 

error during build:
Error: 'Config' is not exported by node_modules/yup/es/util/types.js, imported by node_modules/yup/es/schema.js
  • Loading branch information
michael-land committed Jan 27, 2021
1 parent 51ef92d commit bc284b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ import ValidationError from './ValidationError';
import ReferenceSet from './util/ReferenceSet';
import Reference from './Reference';
import isAbsent from './util/isAbsent';
import { Config, Defined, Flags, SetFlag, Thunk, _ } from './util/types';
import type { Config, Defined, Flags, SetFlag, Thunk, _ } from './util/types';

export { Config };
export type { Config };

export type ConfigOf<T> = T extends AnySchema<any, infer C> ? C : never;

Expand Down

0 comments on commit bc284b5

Please sign in to comment.