mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Merge pull request #33387 from DefinitelyTyped/dt-cleanup-part-4
Two more cleanup items from typescript@next
This commit is contained in:
@@ -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 }
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user