import {expectType} from 'tsd'; import terminalLink = require('.'); expectType(terminalLink('text', 'url')); expectType( terminalLink('text', 'url', { fallback: (text, url) => `[${text}](${url})` }) ); expectType( terminalLink('text', 'url', { fallback: false }) ); expectType(terminalLink.isSupported); // stderr expectType(terminalLink.stderr('text', 'url')); expectType( terminalLink.stderr('text', 'url', { fallback: (text, url) => `[${text}](${url})` }) ); expectType(terminalLink.stderr.isSupported)