Fix json module typings

Signed-off-by: default avatarSnorre Magnus Davøen <snorre.davoen@nsd.uib.no>
parent 69cd36ea
Pipeline #5108 passed with stages
in 31 seconds
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 = <LogSchema> jsonSchema;
export { schema };
\ No newline at end of file
{
"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": {
......
declare module "*.json" {
const value: any;
export default value;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment