File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 "contributors" : [
2525 " Titus Wormer <[email protected] > (https://wooorm.com)" 2626 ],
27+ "types" : " types/index.d.ts" ,
2728 "files" : [
28- " index.js"
29+ " index.js" ,
30+ " types/index.d.ts"
2931 ],
3032 "dependencies" : {},
3133 "devDependencies" : {
3234 "browserify" : " ^16.0.0" ,
35+ "dtslint" : " ^3.6.12" ,
3336 "nyc" : " ^15.0.0" ,
3437 "prettier" : " ^2.0.0" ,
3538 "rehype-stringify" : " ^8.0.0" ,
4952 "build" : " npm run build-bundle && npm run build-mangle" ,
5053 "test-api" : " node test" ,
5154 "test-coverage" : " nyc --reporter lcov tape test.js" ,
52- "test" : " npm run format && npm run build && npm run test-coverage"
55+ "test-types" : " dtslint types" ,
56+ "test" : " npm run format && npm run build && npm run test-coverage && npm run test-types"
5357 },
5458 "nyc" : {
5559 "check-coverage" : true ,
Original file line number Diff line number Diff line change 1+ // TypeScript Version: 3.4
2+
3+ import { Plugin } from 'unified'
4+
5+ declare const remarkBreaks : Plugin < [ ] >
6+
7+ export = remarkBreaks
Original file line number Diff line number Diff line change 1+ import unified = require( 'unified' )
2+ import breaks = require( 'remark-breaks' )
3+
4+ unified ( ) . use ( breaks )
Original file line number Diff line number Diff line change 1+ {
2+ "compilerOptions" : {
3+ "lib" : [" es2015" ],
4+ "strict" : true ,
5+ "baseUrl" : " ." ,
6+ "paths" : {
7+ "remark-breaks" : [" index.d.ts" ]
8+ }
9+ }
10+ }
Original file line number Diff line number Diff line change 1+ {
2+ "extends" : " dtslint/dtslint.json" ,
3+ "rules" : {
4+ "semicolon" : false ,
5+ "whitespace" : false
6+ }
7+ }
You can’t perform that action at this time.
0 commit comments