Files
tsgo/testdata/baselines/reference/submodule/conformance/jsDeclarationsClassStatic(target=es2015).js

76 lines
1.4 KiB
TypeScript

//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassStatic.ts] ////
//// [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.
*/
//// [source.js]
"use strict";
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.
*/
//// [source.d.ts]
export = Handler;
export { Strings };
declare class Handler {
static get OPTIONS(): number;
process(): void;
}
declare namespace Handler {
var statische: () => void;
}
declare const Strings: {
a: string;
b: string;
};
export type HandlerOptions = {
/**
* Should be able to export a type alias at the same time.
*/
name: string;
};
/**
* @typedef {Object} HandlerOptions
* @property {String} name
* Should be able to export a type alias at the same time.
*/