Fix dependabot issues
This commit is contained in:
parent
c89d9bd8b0
commit
531c6ba7c8
705 changed files with 53406 additions and 20466 deletions
44
node_modules/code-excerpt/index.d.ts
generated
vendored
Normal file
44
node_modules/code-excerpt/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
declare namespace codeExcerpt {
|
||||
interface Options {
|
||||
/**
|
||||
* Number of surrounding lines to extract.
|
||||
*
|
||||
* @default 3
|
||||
*/
|
||||
readonly around?: number;
|
||||
}
|
||||
|
||||
interface ExcerptLine {
|
||||
/**
|
||||
* Line number
|
||||
*/
|
||||
readonly line: number;
|
||||
|
||||
/**
|
||||
* Line itself
|
||||
*/
|
||||
readonly value: string;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Extract code excerpts
|
||||
*/
|
||||
declare function codeExcerpt(
|
||||
/**
|
||||
* Source code
|
||||
*/
|
||||
source: string,
|
||||
|
||||
/**
|
||||
* Line number to extract excerpt for.
|
||||
*/
|
||||
line: number,
|
||||
|
||||
/**
|
||||
* Options
|
||||
*/
|
||||
options?: codeExcerpt.Options
|
||||
): codeExcerpt.ExcerptLine[] | undefined;
|
||||
|
||||
export = codeExcerpt;
|
||||
Loading…
Add table
Add a link
Reference in a new issue