@types/bbob__preset
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published

Installation

npm install --save @types/bbob__preset

Summary

This package contains type definitions for @bbob/preset (https://github.com/JiLiZART/bbob).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bbob__preset.

index.d.ts

import { PluginOptions, Tree } from "@bbob/core";
import { Attrs, Content, TagNode } from "@bbob/plugin-helper";

export type PresetFactory = ((options?: PresetOptions) => PresetExecutor) & {
    options?: PresetOptions;
    extend: (callback: (defTags: DefaultTags, options: PresetOptions) => DefaultTags) => PresetFactory;
};
export type PresetOptions = object;
export type PresetExecutor = ((tree: Tree, core?: Core) => void) & { options: PresetOptions };
export type PresetProcessor = (tags: DefaultTags, tree: Tree, core: Core, options: PresetOptions) => DefaultTags;
export interface DefaultTags {
    [tag: string]: TagFunction;
}
export type TagFunction = (node: TagNode, pluginOptions?: PluginOptions, options?: PresetOptions) => TagNode;
export type Core = PluginOptions;

/**
 * Creates preset for @bbob/core
 */
export function createPreset(defTags: DefaultTags, processor?: PresetProcessor): PresetFactory;
export default createPreset;

Additional Details

Credits

These definitions were written by shme-e.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/bbob__preset

Weekly Downloads

103

Version

3.0.1

License

MIT

Unpacked Size

4.66 kB

Total Files

5

Last publish

Collaborators

  • types