mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
89 lines
1.7 KiB
TypeScript
89 lines
1.7 KiB
TypeScript
//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassAccessor.ts] ////
|
|
|
|
//// [supplement.d.ts]
|
|
export { };
|
|
declare module "./argument.js" {
|
|
interface Argument {
|
|
idlType: any;
|
|
default: null;
|
|
}
|
|
}
|
|
//// [base.js]
|
|
export class Base {
|
|
constructor() { }
|
|
|
|
toJSON() {
|
|
const json = { type: undefined, name: undefined, inheritance: undefined };
|
|
return json;
|
|
}
|
|
}
|
|
//// [argument.js]
|
|
import { Base } from "./base.js";
|
|
export class Argument extends Base {
|
|
/**
|
|
* @param {*} tokeniser
|
|
*/
|
|
static parse(tokeniser) {
|
|
return;
|
|
}
|
|
|
|
get type() {
|
|
return "argument";
|
|
}
|
|
|
|
/**
|
|
* @param {*} defs
|
|
*/
|
|
*validate(defs) { }
|
|
}
|
|
|
|
//// [base.js]
|
|
export class Base {
|
|
constructor() { }
|
|
toJSON() {
|
|
const json = { type: undefined, name: undefined, inheritance: undefined };
|
|
return json;
|
|
}
|
|
}
|
|
//// [argument.js]
|
|
import { Base } from "./base.js";
|
|
export class Argument extends Base {
|
|
/**
|
|
* @param {*} tokeniser
|
|
*/
|
|
static parse(tokeniser) {
|
|
return;
|
|
}
|
|
get type() {
|
|
return "argument";
|
|
}
|
|
/**
|
|
* @param {*} defs
|
|
*/
|
|
*validate(defs) { }
|
|
}
|
|
|
|
|
|
//// [base.d.ts]
|
|
export declare class Base {
|
|
constructor();
|
|
toJSON(): {
|
|
type: any;
|
|
name: any;
|
|
inheritance: any;
|
|
};
|
|
}
|
|
//// [argument.d.ts]
|
|
import { Base } from "./base.js";
|
|
export declare class Argument extends Base {
|
|
/**
|
|
* @param {*} tokeniser
|
|
*/
|
|
static parse(tokeniser: any): void;
|
|
get type(): string;
|
|
/**
|
|
* @param {*} defs
|
|
*/
|
|
validate(defs: any): Generator<never, void, unknown>;
|
|
}
|