Merge pull request #33387 from DefinitelyTyped/dt-cleanup-part-4

Two more cleanup items from typescript@next
This commit is contained in:
Nathan Shively-Sanders
2019-02-25 09:40:12 -08:00
committed by GitHub
3 changed files with 8 additions and 6 deletions
+2 -2
View File
@@ -161,12 +161,12 @@ function advancedIntoExample() {
const string: string = into("", t.map((s: string) => s + s), ["a", "b"]);
const object1: { [key: string]: number } = into(
{},
t.map((s: string) => [s, s.length]),
t.map((s: string) => [s, s.length] as [string, number]),
["a", "b"],
);
const object2: { [key: string]: boolean } = into(
{},
t.map((kv: [string, number]) => [kv[0], true]),
t.map((kv: [string, number]) => [kv[0], true] as [string, boolean]),
{ a: 1, b: 2 }
);
}
+3 -2
View File
@@ -2,7 +2,8 @@
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
"es6",
"dom"
],
"noImplicitAny": true,
"noImplicitThis": true,
@@ -20,4 +21,4 @@
"index.d.ts",
"zipkin-context-cls-tests.ts"
]
}
}
+3 -2
View File
@@ -2,7 +2,8 @@
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
"es6",
"dom"
],
"noImplicitAny": true,
"noImplicitThis": true,
@@ -20,4 +21,4 @@
"index.d.ts",
"zipkin-transport-http-tests.ts"
]
}
}