mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 09:52:57 +03:00
29 lines
459 B
TypeScript
29 lines
459 B
TypeScript
|
// @allowJs: true
|
||
|
// @checkJs: true
|
||
|
// @target: es5
|
||
|
// @outDir: ./out
|
||
|
// @declaration: true
|
||
|
// @filename: source.js
|
||
|
class Handler {
|
||
|
static get OPTIONS() {
|
||
|
return 1;
|
||
|
}
|
||
|
|
||
|
process() {
|
||
|
}
|
||
|
}
|
||
|
Handler.statische = function() { }
|
||
|
const Strings = {
|
||
|
a: "A",
|
||
|
b: "B"
|
||
|
}
|
||
|
|
||
|
module.exports = Handler;
|
||
|
module.exports.Strings = Strings
|
||
|
|
||
|
/**
|
||
|
* @typedef {Object} HandlerOptions
|
||
|
* @property {String} name
|
||
|
* Should be able to export a type alias at the same time.
|
||
|
*/
|