gitsome / json-schema-validators-typscript-interfaces

Accepts a directory full of json-schema files and produces associated validators and TypeScript interfaces. Great for validating server side with NodeJS and improving TypeScript client side development.
1 stars 1 forks source link

Generate TypeScript declarations as part of build #14

Open ChristianMurphy opened 4 years ago

ChristianMurphy commented 4 years ago

Add --declarations option to tsc and add types attribute to the package.json. https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html

ChristianMurphy commented 4 years ago

currently blocked by

src/scripts/get-all-files.ts:5:7 - error TS4023: Exported variable 'getAllFiles' has or is using name 'EntryInfo' from external module "/home/christian/Projects/OpenSource/json-schema-validators-typscript-interfaces/node_modules/readdirp/index" but cannot be named.

5 const getAllFiles = (rootPath: string): ReaddirReturn => {
        ~~~~~~~~~~~

Found 1 error.

Which looks related to https://github.com/gitsome/json-schema-validators-typscript-interfaces/pull/13#discussion_r328910375

ChristianMurphy commented 4 years ago

Opened upstream PR https://github.com/paulmillr/readdirp/pull/104