From 8fea89f966d91aee185b7690a11e31d824465a3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Snorre=20Magnus=20Dav=C3=B8en?= Date: Wed, 10 May 2017 10:59:24 +0200 Subject: [PATCH] Fix json module typings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Snorre Magnus Davøen --- index.ts | 6 ++++-- package.json | 2 +- typings.d.ts | 3 +-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/index.ts b/index.ts index 1819cab..db6fbca 100644 --- a/index.ts +++ b/index.ts @@ -1,4 +1,4 @@ -import schema from "../log-schema/log-schema.json"; +import * as jsonSchema from "../log-schema/log-schema.json"; export interface LogSchema { /** @@ -150,4 +150,6 @@ export interface LogSchema { }; } -export const logSchema: LogSchema = schema; +const schema: LogSchema = jsonSchema; + +export { schema }; \ No newline at end of file diff --git a/package.json b/package.json index 0f6d461..f8d4356 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nsd/log-schema-node", - "version": "3.0.0-alpha.4", + "version": "3.0.0-alpha.5", "main": "lib/index.js", "types": "lib/index", "scripts": { diff --git a/typings.d.ts b/typings.d.ts index 4b3471f..20e1dd4 100644 --- a/typings.d.ts +++ b/typings.d.ts @@ -1,4 +1,3 @@ declare module "*.json" { - const value: any; - export default value; + } -- GitLab