mirror of
https://github.com/tridactyl/tridactyl.git
synced 2026-09-10 07:16:33 -04:00
12 lines
325 B
TypeScript
12 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})`
|
|
}
|
|
}
|