mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
feat(markdown-magic): lower TS version requirements (#42253)
This changes the detail of the readonly array arguments to be based on the ReadonlyArray<T> as per #42242 comments. Thanks!
This commit is contained in:
committed by
GitHub
parent
5963a70f87
commit
1f45b5cc4e
5
types/markdown-magic/index.d.ts
vendored
5
types/markdown-magic/index.d.ts
vendored
@@ -2,7 +2,6 @@
|
||||
// Project: https://github.com/DavidWells/markdown-magic#readme
|
||||
// Definitions by: Piotr Błażejewicz (Peter Blazejewicz) <https://github.com/peterblazejewicz>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// Minimum TypeScript Version: 3.4
|
||||
|
||||
/**
|
||||
* @param path Path or glob pattern
|
||||
@@ -10,7 +9,7 @@
|
||||
* @param callback callback to run after markdown updates
|
||||
*/
|
||||
declare function markdownMagic(
|
||||
path: string | readonly string[],
|
||||
path: string | ReadonlyArray<string>,
|
||||
config?: markdownMagic.Configuration,
|
||||
callback?: markdownMagic.Callback,
|
||||
): void;
|
||||
@@ -52,7 +51,7 @@ declare namespace markdownMagic {
|
||||
}
|
||||
|
||||
interface Callback {
|
||||
(error: Error | undefined, output: readonly ProcessedConfig[]): void;
|
||||
(error: Error | undefined, output: ReadonlyArray<ProcessedConfig>): void;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user