mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
30 lines
885 B
TypeScript
30 lines
885 B
TypeScript
// Type definitions for linkify-issues 1.3
|
|
// Project: https://github.com/sindresorhus/linkify-issues#readme
|
|
// Definitions by: BendingBender <https://github.com/BendingBender>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export = linkifyIssues;
|
|
|
|
declare function linkifyIssues(input: string, options?: linkifyIssues.TypeStringOptions): string;
|
|
declare function linkifyIssues(
|
|
input: string,
|
|
options: linkifyIssues.TypeDomOptions
|
|
): DocumentFragment;
|
|
|
|
declare namespace linkifyIssues {
|
|
interface BaseOptions {
|
|
user: string;
|
|
repo: string;
|
|
attributes?: { [attrName: string]: string | number | boolean | Array<string | number> };
|
|
baseUrl?: string;
|
|
}
|
|
|
|
interface TypeStringOptions extends BaseOptions {
|
|
type?: 'string';
|
|
}
|
|
|
|
interface TypeDomOptions extends BaseOptions {
|
|
type: 'dom';
|
|
}
|
|
}
|