-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add augmentation of types in
file.data.meta
- Loading branch information
Showing
5 changed files
with
38 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
coverage/ | ||
node_modules/ | ||
.DS_Store | ||
*.d.ts | ||
test/*.d.ts | ||
index.d.ts | ||
*.log | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Need a random export to turn this into a module? | ||
export type Whatever = unknown | ||
|
||
declare module 'vfile' { | ||
interface DataMap { | ||
meta: { | ||
/** | ||
* Date when this content was first published. | ||
* | ||
* Populated by `unified-infer-git-meta` from Git history. | ||
*/ | ||
published?: Date | ||
|
||
/** | ||
* Date when this content was last modified. | ||
* | ||
* Populated by `unified-infer-git-meta` from Git history. | ||
*/ | ||
modified?: Date | ||
|
||
/** | ||
* Authors who contributed to this content. | ||
* | ||
* Populated by `unified-infer-git-meta` from Git history. | ||
*/ | ||
author?: string | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters