File: index.test-d.ts

package info (click to toggle)
node-redent 3.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 128 kB
  • sloc: javascript: 19; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 351 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
import {expectType} from 'tsd';
import redent = require('.');

const options: redent.Options = {};

expectType<string>(redent('\n  foo\n    bar\n'));
expectType<string>(redent('\n  foo\n    bar\n', 1));
expectType<string>(redent('\n  foo\n    bar\n', 1, {indent: ' '}));
expectType<string>(redent('\n  foo\n    bar\n', 1, {includeEmptyLines: true}));