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:
Piotr Błażejewicz (Peter Blazejewicz)
2020-02-10 21:50:18 +01:00
committed by GitHub
parent 5963a70f87
commit 1f45b5cc4e

View File

@@ -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;
}
}