mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
11 lines
325 B
TypeScript
11 lines
325 B
TypeScript
import { Type } from "../types/AllTypes"
|
|
|
|
export class SymbolMetadata {
|
|
constructor(public doc: string, public type: Type, public hidden = false) {}
|
|
|
|
public toConstructor() {
|
|
return `new SymbolMetadata(${JSON.stringify(
|
|
this.doc,
|
|
)}, ${this.type.toConstructor()}, ${this.hidden})`
|
|
}
|
|
}
|