File: index.test-d.ts

package info (click to toggle)
node-has-flag 4.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 124 kB
  • sloc: makefile: 2
file content (5 lines) | stat: -rw-r--r-- 157 bytes parent folder | download
1
2
3
4
5
import {expectType} from 'tsd';
import hasFlag = require('.');

expectType<boolean>(hasFlag('unicorn'));
expectType<boolean>(hasFlag('unicorn', ['--foo']));