From 1f45b5cc4ef725e9e8838d58ab8a647340cb7de0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20B=C5=82a=C5=BCejewicz=20=28Peter=20Blazejewicz=29?= Date: Mon, 10 Feb 2020 21:50:18 +0100 Subject: [PATCH] feat(markdown-magic): lower TS version requirements (#42253) This changes the detail of the readonly array arguments to be based on the ReadonlyArray as per #42242 comments. Thanks! --- types/markdown-magic/index.d.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/types/markdown-magic/index.d.ts b/types/markdown-magic/index.d.ts index 0c29fdc24d..c97c8324c1 100644 --- a/types/markdown-magic/index.d.ts +++ b/types/markdown-magic/index.d.ts @@ -2,7 +2,6 @@ // Project: https://github.com/DavidWells/markdown-magic#readme // Definitions by: Piotr Błażejewicz (Peter Blazejewicz) // 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, 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): void; } }