60efb65931
* Do not ts-ignore noImplicitAny suggestions Still need to write tests. * Add tests * More tests * Update baselines
20 lines
476 B
TypeScript
20 lines
476 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
// @strict: true
|
|
////
|
|
/////** @param {Object<string, boolean>} sb
|
|
//// * @param {Object<number, string>} ns */
|
|
////function f(sb, ns) {
|
|
//// sb; ns;
|
|
////}
|
|
|
|
verify.codeFix({
|
|
description: "Annotate with type from JSDoc",
|
|
index: 2,
|
|
newFileContent:
|
|
`
|
|
/** @param {Object<string, boolean>} sb
|
|
* @param {Object<number, string>} ns */
|
|
function f(sb: { [s: string]: boolean; }, ns: { [n: number]: string; }) {
|
|
sb; ns;
|
|
}`,
|
|
});
|