mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
Enable TS strict mode by default (#3899)
Fixes #3324 Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
This commit is contained in:
parent
852823fa50
commit
90125566bb
56 changed files with 314 additions and 179 deletions
|
@ -1,7 +1,8 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { test, assert, assertEquals } from "./test_util.ts";
|
||||
|
||||
function testFirstArgument(arg1, expectedSize): void {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
function testFirstArgument(arg1: any[], expectedSize: number): void {
|
||||
const file = new File(arg1, "name");
|
||||
assert(file instanceof File);
|
||||
assertEquals(file.name, "name");
|
||||
|
@ -76,7 +77,8 @@ test(function fileObjectInFileBits(): void {
|
|||
testFirstArgument([{}], 15);
|
||||
});
|
||||
|
||||
function testSecondArgument(arg2, expectedFileName): void {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
function testSecondArgument(arg2: any, expectedFileName: string): void {
|
||||
const file = new File(["bits"], arg2);
|
||||
assert(file instanceof File);
|
||||
assertEquals(file.name, expectedFileName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue