diff --git a/types/markdown-it-lazy-headers/index.d.ts b/types/markdown-it-lazy-headers/index.d.ts new file mode 100644 index 0000000000..9eb8a54cf1 --- /dev/null +++ b/types/markdown-it-lazy-headers/index.d.ts @@ -0,0 +1,11 @@ +// Type definitions for MarkdownItLazyHeaders (markdown-it-lazy-headers) 0.13 +// Project: https://github.com/Galadirith/markdown-it-lazy-headers +// Definitions by: Knom +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +import { MarkdownIt } from 'markdown-it'; + +declare function lazyheaders(md: MarkdownIt): void; + +export = lazyheaders; diff --git a/types/markdown-it-lazy-headers/markdown-it-lazy-headers-tests.ts b/types/markdown-it-lazy-headers/markdown-it-lazy-headers-tests.ts new file mode 100644 index 0000000000..4957dbadf8 --- /dev/null +++ b/types/markdown-it-lazy-headers/markdown-it-lazy-headers-tests.ts @@ -0,0 +1,13 @@ +import MarkdownIt = require("markdown-it"); +import lazyHeaders = require("markdown-it-lazy-headers"); + +const md = new MarkdownIt(); + +md.use(lazyHeaders); + +const src = `# First header +Lorem ipsum. +## Next section! +This is totaly awesome.`; + +md.render(src); diff --git a/types/markdown-it-lazy-headers/tsconfig.json b/types/markdown-it-lazy-headers/tsconfig.json new file mode 100644 index 0000000000..96e39b5ffe --- /dev/null +++ b/types/markdown-it-lazy-headers/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "markdown-it-lazy-headers-tests.ts" + ] +} \ No newline at end of file diff --git a/types/markdown-it-lazy-headers/tslint.json b/types/markdown-it-lazy-headers/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/markdown-it-lazy-headers/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }