Merge pull request #29124 from knom/markdownit-lazy-headers

Added declarations for MarkdownIt-Lazy-Headers project
This commit is contained in:
Andrew Casey
2018-09-26 14:09:24 -07:00
committed by GitHub
4 changed files with 48 additions and 0 deletions
+11
View File
@@ -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 <https://github.com/knom>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
import { MarkdownIt } from 'markdown-it';
declare function lazyheaders(md: MarkdownIt): void;
export = lazyheaders;
@@ -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);
@@ -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"
]
}
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }