mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
37 lines
792 B
TypeScript
37 lines
792 B
TypeScript
import linkifyIssues = require('linkify-issues');
|
|
|
|
// $ExpectType string
|
|
linkifyIssues('Fixes #143 and avajs/ava#1023', {
|
|
user: 'sindresorhus',
|
|
repo: 'dofle',
|
|
});
|
|
// $ExpectType string
|
|
linkifyIssues('Fixes #143 and avajs/ava#1023', {
|
|
user: 'sindresorhus',
|
|
repo: 'dofle',
|
|
attributes: {
|
|
class: 'unicorn',
|
|
multiple: ['a', 'b'],
|
|
number: 1,
|
|
exclude: false,
|
|
include: true,
|
|
},
|
|
});
|
|
// $ExpectType string
|
|
linkifyIssues('Fixes #143 and avajs/ava#1023', {
|
|
user: 'sindresorhus',
|
|
repo: 'dofle',
|
|
type: 'string',
|
|
});
|
|
|
|
const fragment = linkifyIssues('Fixes #143 and avajs/ava#1023', {
|
|
user: 'sindresorhus',
|
|
repo: 'dofle',
|
|
type: 'dom',
|
|
});
|
|
|
|
// $ExpectType DocumentFragment
|
|
fragment;
|
|
|
|
document.body.appendChild(fragment);
|