File: index.test-d.ts

package info (click to toggle)
node-pretty-bytes 5.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 140 kB
  • sloc: javascript: 292; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 420 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
import {expectType} from 'tsd';
import prettyBytes = require('.');

const options: prettyBytes.Options = {};

expectType<string>(prettyBytes(1337));
expectType<string>(prettyBytes(42, {signed: true}));
expectType<string>(prettyBytes(1337, {locale: 'de'}));
expectType<string>(prettyBytes(1337, {locale: true}));
expectType<string>(prettyBytes(1337, {bits: true}));
expectType<string>(prettyBytes(1337, {binary: true}));