# @types/pell

> TypeScript definitions for pell

Latest version **1.0.4** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/pell
pnpm add @types/pell
yarn add @types/pell
bun add @types/pell
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2023-11-07 |
| First published | 2020-03-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51439 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/pell
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pell
- npm.io page: https://npm.io/package/@types/pell

## Recent versions

- 1.0.4 (latest) — 2023-11-07
- 1.0.1 (ts3.6) — 2021-07-08
- 1.0.0 (ts2.8) — 2020-03-23
- 1.0.3 — 2023-10-18
- 1.0.2 — 2023-09-24

## README

# Installation
> `npm install --save @types/pell`

# Summary
This package contains type definitions for pell (https://jaredreich.com/pell).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pell.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pell/index.d.ts)
````ts
export as namespace pell;

export interface PellElement {
    content: HTMLDivElement;
}

export function init<T extends HTMLElement>(c: pellConfig<T>): T & PellElement;
export function exec(command: string, value?: string): void;

export interface pellConfig<T extends HTMLElement> {
    element: T;
    onChange: (html: string) => void;
    defaultParagraphSeparator?: string | undefined;
    styleWithCSS?: boolean | undefined;
    actions: pellAction[];
    classes?: pellClasses | undefined;
}

export interface pellClasses {
    actionbar?: string | undefined;
    button?: string | undefined;
    content?: string | undefined;
    selected?: string | undefined;
}

export type pellAction = pellBuiltinAction | pellActionConfig | pellCustomActionConfig;
export interface pellActionConfig {
    name: pellAction;
    icon?: string | undefined;
    title?: string | undefined;
    result: () => void;
}
export interface pellCustomActionConfig {
    name?: string | undefined;
    icon: string;
    title?: string | undefined;
    result: () => void;
}

export type pellBuiltinAction =
    | "bold"
    | "italic"
    | "underline"
    | "strikethrough"
    | "heading1"
    | "heading2"
    | "paragraph"
    | "quote"
    | "olist"
    | "ulist"
    | "code"
    | "line"
    | "link"
    | "image";

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [Gabriel Soicher](https://github.com/Lunrtick).

---
_Source: https://npm.io/package/@types/pell · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
