mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
55 lines
1.4 KiB
TypeScript
55 lines
1.4 KiB
TypeScript
import newGithubIssueUrl = require('new-github-issue-url');
|
|
|
|
// $ExpectType string
|
|
newGithubIssueUrl({
|
|
repoUrl: 'https://github.com/sindresorhus/new-github-issue-url.git',
|
|
});
|
|
// $ExpectType string
|
|
newGithubIssueUrl({
|
|
user: 'sindresorhus',
|
|
repo: 'new-github-issue-url',
|
|
});
|
|
// $ExpectError
|
|
newGithubIssueUrl({
|
|
user: 'sindresorhus',
|
|
});
|
|
// $ExpectError
|
|
newGithubIssueUrl({
|
|
repo: 'new-github-issue-url',
|
|
});
|
|
// $ExpectType string
|
|
newGithubIssueUrl({
|
|
repoUrl: 'https://github.com/sindresorhus/new-github-release-url.git',
|
|
body: 'foo',
|
|
});
|
|
// $ExpectType string
|
|
newGithubIssueUrl({
|
|
repoUrl: 'https://github.com/sindresorhus/new-github-release-url.git',
|
|
title: 'foo',
|
|
});
|
|
// $ExpectType string
|
|
newGithubIssueUrl({
|
|
repoUrl: 'https://github.com/sindresorhus/new-github-release-url.git',
|
|
template: 'unicorn.md',
|
|
});
|
|
// $ExpectType string
|
|
newGithubIssueUrl({
|
|
repoUrl: 'https://github.com/sindresorhus/new-github-release-url.git',
|
|
labels: ['foo', 'bar'],
|
|
});
|
|
// $ExpectType string
|
|
newGithubIssueUrl({
|
|
repoUrl: 'https://github.com/sindresorhus/new-github-release-url.git',
|
|
milestone: 'foo',
|
|
});
|
|
// $ExpectType string
|
|
newGithubIssueUrl({
|
|
repoUrl: 'https://github.com/sindresorhus/new-github-release-url.git',
|
|
assignee: 'sindresorhus',
|
|
});
|
|
// $ExpectType string
|
|
newGithubIssueUrl({
|
|
repoUrl: 'https://github.com/sindresorhus/new-github-release-url.git',
|
|
projects: ['some-repo/3'],
|
|
});
|