diff --git a/types/jotform-css.js/index.d.ts b/types/jotform-css.js/index.d.ts index cb6c62b6c0..3b748fc176 100644 --- a/types/jotform-css.js/index.d.ts +++ b/types/jotform-css.js/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/jotform/css.js // Definitions by: Peter van der Woude // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + /// /** diff --git a/types/jotform-css.js/jotform-css.js-tests.ts b/types/jotform-css.js/jotform-css.js-tests.ts index ad3e45e100..73c2d15a43 100644 --- a/types/jotform-css.js/jotform-css.js-tests.ts +++ b/types/jotform-css.js/jotform-css.js-tests.ts @@ -1,10 +1,10 @@ -import cssjsGlobal = require("../jotform-css.js") +let cssjsGlobal = require("jotform-css.js") import { CssJs } from "./index" // not all interface methods tested here, below is a sample of code that I've actually used class TestParser { public parse(cssString: string): string { - const parser = new (cssjsGlobal).cssjs() as CssJs + const parser = new cssjsGlobal.cssjs() as CssJs let parsed = parser.parseCSS(cssString) parsed = parser.applyNamespacing(parsed, "#id1")