<commit_before>import {expectType} from 'tsd';
import ansiEscapes = require('.');

expectType<string>(ansiEscapes.cursorTo(0));
expectType<string>(ansiEscapes.cursorTo(0, 1));
expectType<string>(ansiEscapes.cursorMove(0));
expectType<string>(ansiEscapes.cursorMove(0, 1));
expectType<string>(ansiEscapes.cursorUp());
expectType<string>(ansiEscapes.cursorUp(1));
expectType<string>(ansiEscapes.cursorDown());
expectType<string>(ansiEscapes.cursorDown(1));
expectType<string>(ansiEscapes.cursorForward());
expectType<string>(ansiEscapes.cursorForward(1));
expectType<string>(ansiEscapes.cursorBackward());
expectType<string>(ansiEscapes.cursorBackward(1));
expectType<string>(ansiEscapes.cursorLeft);
expectType<string>(ansiEscapes.cursorSavePosition);
expectType<string>(ansiEscapes.cursorRestorePosition);
expectType<string>(ansiEscapes.cursorGetPosition);
expectType<string>(ansiEscapes.cursorNextLine);
expectType<string>(ansiEscapes.cursorPrevLine);
expectType<string>(ansiEscapes.cursorHide);
expectType<string>(ansiEscapes.cursorShow);
expectType<string>(ansiEscapes.eraseLines(2));
expectType<string>(ansiEscapes.eraseEndLine);
expectType<string>(ansiEscapes.eraseStartLine);
expectType<string>(ansiEscapes.eraseLine);
expectType<string>(ansiEscapes.eraseDown);
expectType<string>(ansiEscapes.eraseUp);
expectType<string>(ansiEscapes.eraseScreen);
expectType<string>(ansiEscapes.scrollUp);
expectType<string>(ansiEscapes.scrollDown);
expectType<string>(ansiEscapes.clearScreen);
expectType<string>(ansiEscapes.clearTerminal);
expectType<string>(ansiEscapes.beep);
expectType<string>(ansiEscapes.link('foo', 'https://foo.bar'));
expectType<string>(ansiEscapes.image(new Buffer(1)));
expectType<string>(ansiEscapes.image(new Buffer(1), {width: 1}));
expectType<string>(ansiEscapes.image(new Buffer(1), {width: '1px'}));
expectType<string>(ansiEscapes.image(new Buffer(1), {width: 'auto'}));
expectType<string>(ansiEscapes.image(new Buffer(1), {height: 1}));
expectType<string>(ansiEscapes.image(new Buffer(1), {height: '1px'}));
expectType<string>(ansiEscapes.image(new Buffer(1), {height: 'auto'}));
expectType<string>(
	ansiEscapes.image(new Buffer(1), {preserveAspectRatio: false})
);<commit_msg>Meta tweaks<commit_after>import {expectType} from 'tsd';
import ansiEscapes = require('.');

expectType<string>(ansiEscapes.cursorTo(0));
expectType<string>(ansiEscapes.cursorTo(0, 1));
expectType<string>(ansiEscapes.cursorMove(0));
expectType<string>(ansiEscapes.cursorMove(0, 1));
expectType<string>(ansiEscapes.cursorUp());
expectType<string>(ansiEscapes.cursorUp(1));
expectType<string>(ansiEscapes.cursorDown());
expectType<string>(ansiEscapes.cursorDown(1));
expectType<string>(ansiEscapes.cursorForward());
expectType<string>(ansiEscapes.cursorForward(1));
expectType<string>(ansiEscapes.cursorBackward());
expectType<string>(ansiEscapes.cursorBackward(1));
expectType<string>(ansiEscapes.cursorLeft);
expectType<string>(ansiEscapes.cursorSavePosition);
expectType<string>(ansiEscapes.cursorRestorePosition);
expectType<string>(ansiEscapes.cursorGetPosition);
expectType<string>(ansiEscapes.cursorNextLine);
expectType<string>(ansiEscapes.cursorPrevLine);
expectType<string>(ansiEscapes.cursorHide);
expectType<string>(ansiEscapes.cursorShow);
expectType<string>(ansiEscapes.eraseLines(2));
expectType<string>(ansiEscapes.eraseEndLine);
expectType<string>(ansiEscapes.eraseStartLine);
expectType<string>(ansiEscapes.eraseLine);
expectType<string>(ansiEscapes.eraseDown);
expectType<string>(ansiEscapes.eraseUp);
expectType<string>(ansiEscapes.eraseScreen);
expectType<string>(ansiEscapes.scrollUp);
expectType<string>(ansiEscapes.scrollDown);
expectType<string>(ansiEscapes.clearScreen);
expectType<string>(ansiEscapes.clearTerminal);
expectType<string>(ansiEscapes.beep);
expectType<string>(ansiEscapes.link('foo', 'https://foo.bar'));
expectType<string>(ansiEscapes.image(Buffer.from(1)));
expectType<string>(ansiEscapes.image(Buffer.from(1), {width: 1}));
expectType<string>(ansiEscapes.image(Buffer.from(1), {width: '1px'}));
expectType<string>(ansiEscapes.image(Buffer.from(1), {width: 'auto'}));
expectType<string>(ansiEscapes.image(Buffer.from(1), {height: 1}));
expectType<string>(ansiEscapes.image(Buffer.from(1), {height: '1px'}));
expectType<string>(ansiEscapes.image(Buffer.from(1), {height: 'auto'}));
expectType<string>(
	ansiEscapes.image(Buffer.from(1), {preserveAspectRatio: false})
);
{'fraction_non_alphanumeric': 0.1686310063463282, 'fraction_numerical': 0.01042611060743427, 'mean_word_length': 16.9390243902439, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 85, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3254792', 'n_tokens_mistral': 1565, 'n_tokens_neox': 1492, 'n_words': 141}