mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
34 lines
502 B
TypeScript
34 lines
502 B
TypeScript
//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingGenerics.ts] ////
|
|
|
|
//// [file.js]
|
|
/**
|
|
* @param {Array} x
|
|
*/
|
|
function x(x) {}
|
|
/**
|
|
* @param {Promise} x
|
|
*/
|
|
function y(x) {}
|
|
|
|
//// [file.js]
|
|
"use strict";
|
|
/**
|
|
* @param {Array} x
|
|
*/
|
|
function x(x) { }
|
|
/**
|
|
* @param {Promise} x
|
|
*/
|
|
function y(x) { }
|
|
|
|
|
|
//// [file.d.ts]
|
|
/**
|
|
* @param {Array} x
|
|
*/
|
|
declare function x(x: any[]): void;
|
|
/**
|
|
* @param {Promise} x
|
|
*/
|
|
declare function y(x: Promise<any>): void;
|