Skip to content

Commit

Permalink
Add ignored file
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Oct 25, 2023
1 parent 5c713c5 commit a11d152
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ node_modules/
*.d.ts
*.log
yarn.lock
!/test/types.d.ts
28 changes: 28 additions & 0 deletions test/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import type {Literal, Parent, PhrasingContent} from 'mdast'

export {}

export interface X extends Parent {
type: 'x'
children: PhrasingContent[]
}

export interface Y extends Literal {
type: 'y'
}

// Add nodes to content, register `data` on paragraph.
declare module 'mdast' {
interface BlockContentMap {
x: X
}

interface PhrasingContentMap {
y: Y
}

interface RootContentMap {
x: X
y: Y
}
}

0 comments on commit a11d152

Please sign in to comment.