unified-doc-types
unified-doc typescript typings.
Last updated a month ago by chrisrzhou .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install unified-doc-types 
SYNC missed versions from official npm registry.

unified-doc-types

unified-doc typescript typings.


Install

npm install unified-doc-types

Use

import { FileData, Mark, SearchResult } from 'unified-doc-types';

const fileData: FileData = {
  content: '> **some** markdown content',
  extension: '.md',
  name: 'doc.md',
  stem: 'name',
  type: 'text/markdown'
};

const marks: Mark[] = [
  { id: 'a', start: 0, end: 5, classNames: ['class-a', 'class-b'] },
  { id: 'b', start: 0, end: 5, style: { background: 'red' }, data: { custom: true } },
];

const results: SearchResult[] = [
  { start: 0, end: 2, value: 'so', data: { weight: 2 } },
  { start: 6, end: 8, value: 'rk', data: { weight: 5 } },
];

Current Tags

  • 2.0.3                                ...           latest (a month ago)

12 Versions

  • 2.0.3                                ...           a month ago
  • 2.0.2                                ...           a month ago
  • 2.0.1                                ...           a month ago
  • 2.0.0                                ...           a month ago
  • 1.0.2                                ...           a month ago
  • 1.0.1                                ...           2 months ago
  • 1.0.0                                ...           2 months ago
  • 0.1.10-beta.0                                ...           2 months ago
  • 0.1.9-beta.0                                ...           3 months ago
  • 0.1.8-beta.0                                ...           3 months ago
  • 0.1.7-beta.0                                ...           3 months ago
  • 0.1.6-beta.0                                ...           3 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 61
Dependencies (1)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |