mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-17 17:48:06 +00:00
🤖 Merge PR #65825 [markdown-it-source-map] Add types by @feliskio
* [markdown-it-source-map] Add types * Export as default
This commit is contained in:
committed by
GitHub
parent
ac95fe6086
commit
b8255df610
9
types/markdown-it-source-map/index.d.ts
vendored
Normal file
9
types/markdown-it-source-map/index.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
// Type definitions for markdown-it-source-map 0.1
|
||||
// Project: https://github.com/tylingsoft/markdown-it-source-map#readme
|
||||
// Definitions by: Felix Wotschofsky <https://github.com/feliskio>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import MarkdownIt = require('markdown-it');
|
||||
|
||||
declare const markdownItSourceMap: MarkdownIt.PluginSimple;
|
||||
export default markdownItSourceMap;
|
||||
10
types/markdown-it-source-map/markdown-it-source-map-tests.ts
Normal file
10
types/markdown-it-source-map/markdown-it-source-map-tests.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
// From original package README
|
||||
// https://github.com/tylingsoft/markdown-it-source-map/blob/b5c374465ebd2a182b90720b99809f4c1b48b178/README.md
|
||||
|
||||
import * as markdownIt from 'markdown-it';
|
||||
import markdownItSourceMap from 'markdown-it-source-map';
|
||||
|
||||
const mdi = markdownIt();
|
||||
mdi.use(markdownItSourceMap);
|
||||
|
||||
mdi.render('# hello world'); // <h1 data-source-line="1">hello world</h1>
|
||||
23
types/markdown-it-source-map/tsconfig.json
Normal file
23
types/markdown-it-source-map/tsconfig.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"markdown-it-source-map-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/markdown-it-source-map/tslint.json
Normal file
1
types/markdown-it-source-map/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "@definitelytyped/dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user