File: index.test-d.ts

package info (click to toggle)
node-to-fast-properties 3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 132 kB
  • sloc: makefile: 2
file content (16 lines) | stat: -rw-r--r-- 251 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import {expectType} from 'tsd';
import toFastProperties = require('.');

expectType<{}>(toFastProperties());

type Fixture = {
	a: boolean;
	b: number;
};

const fixture: Fixture = {
	a: true,
	b: 1
};

expectType<Fixture>(toFastProperties(fixture));