An open API service indexing awesome lists of open source software.

https://github.com/chmac/mdast-util-is-type

Simple isHeading(), isXXXX() helpers with typescript types for mdast
https://github.com/chmac/mdast-util-is-type

mdast mdast-util unifiedjs

Last synced: 5 months ago
JSON representation

Simple isHeading(), isXXXX() helpers with typescript types for mdast

Awesome Lists containing this project

README

          

# mdast-util-is-type

Simple helpers to resolve MDAST types. Includes typescript types.

These functions are incredibly simple, for example:

```typescript
export const isHeading = (node: any): node is Heading => {
return node.type === 'heading';
};
```

They can be used as type predicates. They're all single exports and so should
play nicely with tree shaking tools.