UNPKG

645 BTypeScriptView Raw
1// Type definitions for slice-ansi 5.0
2// Project: https://github.com/chalk/slice-ansi#readme
3// Definitions by: Dan Imhoff <https://github.com/dwieeb>
4// Piotr Błażejewicz <https://github.com/peterblazejewicz>
5// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
6
7/**
8 * Slice a string with ANSI escape codes
9 * @param input string with ANSI escape codes. Like one styled by chalk
10 * @param beginSlice Zero-based index at which to begin the slice
11 * @param [endSlice] Zero-based index at which to end the slice
12 */
13export default function sliceAnsi(input: string, beginSlice: number, endSlice?: number): string;