Skip to content

Commit

Permalink
Fix typescript error due to schema type (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
klaseca authored Nov 11, 2022
1 parent 0d16e21 commit a8febe8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Ajv, { KeywordDefinition, JSONSchemaType } from 'ajv';
import { AnySchema } from 'ajv/dist/core';
import { DotenvConfigOptions } from 'dotenv';
import { ObjectSchema } from 'fluent-json-schema';

export type { JSONSchemaType };

Expand All @@ -10,7 +9,7 @@ export type EnvSchemaData = {
};

export type EnvSchemaOpt<T = EnvSchemaData> = {
schema?: JSONSchemaType<T> | AnySchema | ObjectSchema;
schema?: JSONSchemaType<T> | AnySchema;
data?: [EnvSchemaData, ...EnvSchemaData[]] | EnvSchemaData;
env?: boolean;
dotenv?: boolean | DotenvConfigOptions;
Expand Down

0 comments on commit a8febe8

Please sign in to comment.