Skip to content

Commit

Permalink
Refactor types
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jun 19, 2022
1 parent c5ff127 commit 2aa15ea
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,16 @@
* @typedef {import('unist').Node} Node
* @typedef {import('vfile').VFileCompatible} VFileCompatible
* @typedef {import('vfile').VFileValue} VFileValue
* @typedef {import('..').Processor} Processor
* @typedef {import('..').Plugin} Plugin
* @typedef {import('..').Preset} Preset
* @typedef {import('..').Pluggable} Pluggable
* @typedef {import('..').PluggableList} PluggableList
* @typedef {import('..').Transformer} Transformer
* @typedef {import('..').Parser} Parser
* @typedef {import('..').Compiler} Compiler
* @typedef {import('..').RunCallback} RunCallback
* @typedef {import('..').ProcessCallback} ProcessCallback
*
* @typedef Context
* @property {Node} tree
* @property {VFile} file
* @typedef {import('../index.js').Processor} Processor
* @typedef {import('../index.js').Plugin} Plugin
* @typedef {import('../index.js').Preset} Preset
* @typedef {import('../index.js').Pluggable} Pluggable
* @typedef {import('../index.js').PluggableList} PluggableList
* @typedef {import('../index.js').Transformer} Transformer
* @typedef {import('../index.js').Parser} Parser
* @typedef {import('../index.js').Compiler} Compiler
* @typedef {import('../index.js').RunCallback} RunCallback
* @typedef {import('../index.js').ProcessCallback} ProcessCallback
*/

import {bail} from 'bail'
Expand Down Expand Up @@ -178,7 +174,7 @@ function base() {
return processor

/**
* @param {import('..').Pluggable<Array<unknown>>} value
* @param {import('../index.js').Pluggable<Array<unknown>>} value
* @returns {void}
*/
function add(value) {
Expand Down

0 comments on commit 2aa15ea

Please sign in to comment.