mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
20 lines
377 B
TypeScript
20 lines
377 B
TypeScript
// @allowJs: true
|
|
// @checkJs: true
|
|
// @declaration: true
|
|
// @emitDeclarationOnly: true
|
|
// @lib: es2017
|
|
// @filename: a.js
|
|
export const kSymbol = Symbol("my-symbol");
|
|
|
|
/**
|
|
* @typedef {{[kSymbol]: true}} WithSymbol
|
|
*/
|
|
// @filename: b.js
|
|
/**
|
|
* @returns {import('./a').WithSymbol}
|
|
* @param {import('./a').WithSymbol} value
|
|
*/
|
|
export function b(value) {
|
|
return value;
|
|
}
|