TypeScript type definitions for wooorm/remark plugins.
npm i @paperist/types-remarkNOTE |
You should NOT install mdast, unist packages. It is not exists on npm.
First, you should set @paperist/types-remark to types in tsconfig.json.
{
"compilerOptions": {
"types": ["node", "@paperist/types-remark"]
}
}- unist-util-visit
import * as Visit from 'unist-util-visit';
- remark-parse
import * as RemarkParse from 'remark-parse';
- MDAST (no npm package)
import { MDAST } from 'mdast';
- Unist (no npm package)
import { UNIST } from 'unist';
PRs accepted.