File tree Expand file tree Collapse file tree 4 files changed +6
-22
lines changed Expand file tree Collapse file tree 4 files changed +6
-22
lines changed Original file line number Diff line number Diff line change 1717 "bugs" : " https://github.com/syntax-tree/unist-util-is/issues" ,
1818 "author" : " Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)" ,
1919 "contributors" : [
20- " Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
20+ " Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)" ,
21+ " Christian Murphy <christian.murphy.42@gmail.com>"
2122 ],
2223 "files" : [
2324 " index.js" ,
2829 "types" : " index.d.ts" ,
2930 "dependencies" : {},
3031 "devDependencies" : {
32+ "@types/mdast" : " ^3.0.3" ,
3133 "browserify" : " ^16.0.0" ,
32- "dtslint" : " ^0.9.0 " ,
34+ "dtslint" : " ^1.0.2 " ,
3335 "nyc" : " ^14.0.0" ,
3436 "prettier" : " ^1.0.0" ,
3537 "remark-cli" : " ^7.0.0" ,
3638 "remark-preset-wooorm" : " ^6.0.0" ,
3739 "tape" : " ^4.0.0" ,
3840 "tinyify" : " ^2.0.0" ,
39- "typescript" : " ^3.5.3" ,
4041 "unified" : " ^8.3.2" ,
4142 "xo" : " ^0.24.0"
4243 },
Original file line number Diff line number Diff line change 22 "compilerOptions" : {
33 "lib" : [" es2015" ],
44 "strict" : true ,
5- "noImplicitAny" : true ,
6- "noImplicitThis" : true ,
7- "strictNullChecks" : true ,
8- "strictFunctionTypes" : true ,
95 "baseUrl" : " ." ,
106 "paths" : {
117 "unist-util-is" : [" index.d.ts" ],
Original file line number Diff line number Diff line change 11{
22 "extends" : " dtslint/dtslint.json" ,
33 "rules" : {
4- "callable-types" : false ,
5- "max-line-length" : false ,
6- "no-redundant-jsdoc" : false ,
7- "no-void-expression" : false ,
8- "only-arrow-functions" : false ,
94 "semicolon" : false ,
10- "unified-signatures" : false ,
11- "whitespace" : false ,
12- "interface-over-type-literal" : false ,
13- "no-unnecessary-generics" : false
5+ "whitespace" : false
146 }
157}
Original file line number Diff line number Diff line change 11import { Node , Parent } from 'unist'
2+ import { Heading } from 'mdast'
23import unified = require( 'unified' )
34import is = require( 'unist-util-is' )
45import convert = require( 'unist-util-is/convert' )
56
67/*=== setup ===*/
7- interface Heading extends Parent {
8- type : 'heading'
9- depth : number
10- children : Node [ ]
11- }
12-
138interface Element extends Parent {
149 type : 'element'
1510 tagName : string
You can’t perform that action at this time.
0 commit comments