Skip to content

Commit

Permalink
Re-export the schema TS type
Browse files Browse the repository at this point in the history
Fixes #84
  • Loading branch information
sindresorhus committed Sep 9, 2019
1 parent 68bbb46 commit 93ace80
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.d.ts
Expand Up @@ -2,6 +2,8 @@
import {JSONSchema} from 'json-schema-typed';

declare namespace Conf {
type Schema = JSONSchema;

interface Options<T> {
/**
Config used if there are no existing config.
Expand Down Expand Up @@ -45,7 +47,7 @@ declare namespace Conf {
**Note:** The `default` value will be overwritten by the `defaults` option if set.
*/
readonly schema?: {[P in keyof T]: JSONSchema};
readonly schema?: {[P in keyof T]: Schema};

/**
Name of the config file (without extension).
Expand Down

0 comments on commit 93ace80

Please sign in to comment.