mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
273 B
TypeScript
24 lines
273 B
TypeScript
// @allowJs: true
|
|
// @checkJs: true
|
|
// @noEmit: true
|
|
|
|
// @Filename: /a.js
|
|
|
|
/**
|
|
* @typedef {object} T
|
|
* @property {boolean} await
|
|
*/
|
|
|
|
/** @type {T} */
|
|
const a = 1;
|
|
|
|
/** @type {T} */
|
|
const b = {
|
|
await: false,
|
|
};
|
|
|
|
/**
|
|
* @param {boolean} await
|
|
*/
|
|
function c(await) {}
|