mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
29 lines
735 B
Plaintext
29 lines
735 B
Plaintext
//// [tests/cases/compiler/jsdocNonIdentifierPropertiesAndParams.ts] ////
|
|
|
|
=== index.js ===
|
|
/**
|
|
* @typedef {Object} ButtonProps
|
|
* @property {string} label The button label
|
|
* @property {string | null | undefined} [data-test-name] Test automation attribute
|
|
* @property {string | null | undefined} [aria-label] Accessibility label
|
|
*/
|
|
|
|
/**
|
|
* @param {ButtonProps} props
|
|
* @returns {ButtonProps}
|
|
*/
|
|
export function Button(props) {
|
|
>Button : Symbol(Button, Decl(index.js, 0, 0))
|
|
>props : Symbol(props, Decl(index.js, 11, 23))
|
|
|
|
return { ...props }
|
|
>props : Symbol(props, Decl(index.js, 11, 23))
|
|
}
|
|
|
|
/**
|
|
* @callback ButtonPropsCallback
|
|
* @param {ButtonProps} [props-like]
|
|
* @returns {ButtonProps}
|
|
*/
|
|
|