17 lines
217 B
TypeScript
17 lines
217 B
TypeScript
|
// @declaration: true
|
||
|
// @allowJs: true
|
||
|
// @emitDeclarationOnly: true
|
||
|
|
||
|
// @filename: /a.js
|
||
|
class A {
|
||
|
/**
|
||
|
* @param {object} [foo={}]
|
||
|
*/
|
||
|
m(foo = {}) {
|
||
|
/**
|
||
|
* @type object
|
||
|
*/
|
||
|
this["arguments"] = foo;
|
||
|
}
|
||
|
}
|