From 50a79584cb12129b3db1ef3e0eb9d0c8b9f20b62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 30 May 2019 14:59:30 +0200 Subject: chore: Implement strict mode (denoland/deno_std#453) Original: https://github.com/denoland/deno_std/commit/be24677d15494e83eea2e99bfc5ccfdde31cb892 --- fs/path/parse_format_test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'fs/path/parse_format_test.ts') diff --git a/fs/path/parse_format_test.ts b/fs/path/parse_format_test.ts index 05327a139..8829891da 100644 --- a/fs/path/parse_format_test.ts +++ b/fs/path/parse_format_test.ts @@ -79,8 +79,8 @@ const unixSpecialCaseFormatTests = [ [{}, ""] ]; -function checkParseFormat(path, paths): void { - paths.forEach(function(p) { +function checkParseFormat(path: any, paths: any): void { + paths.forEach(function(p: Record[]) { const element = p[0]; const output = path.parse(element); assertEquals(typeof output.root, "string"); @@ -95,8 +95,8 @@ function checkParseFormat(path, paths): void { }); } -function checkSpecialCaseParseFormat(path, testCases): void { - testCases.forEach(function(testCase) { +function checkSpecialCaseParseFormat(path: any, testCases: any): void { + testCases.forEach(function(testCase: Record[]) { const element = testCase[0]; const expect = testCase[1]; const output = path.parse(element); @@ -106,7 +106,7 @@ function checkSpecialCaseParseFormat(path, testCases): void { }); } -function checkFormat(path, testCases): void { +function checkFormat(path: any, testCases: unknown[][]): void { testCases.forEach(function(testCase) { assertEquals(path.format(testCase[0]), testCase[1]); }); -- cgit v1.2.3