@ts-for-gir/lib
Version:
Typescript .d.ts generator from GIR for gjs
26 lines (25 loc) • 1.14 kB
TypeScript
import { TypeExpression } from "../gir.js";
import { IntrospectedNamespaceMember, Options } from "./base.js";
import { GirConstantElement } from "../index.js";
import { IntrospectedNamespace } from "./namespace.js";
import { FormatGenerator } from "../generators/generator.js";
import { GirVisitor } from "../visitor.js";
import type { OptionsLoad } from "../types/index.js";
export declare class IntrospectedConstant extends IntrospectedNamespaceMember {
type: TypeExpression;
value: string | null;
constructor({ name, type, namespace, value, ...options }: Options<{
name: string;
type: TypeExpression;
namespace: IntrospectedNamespace;
value: string | null;
isIntrospectable?: boolean;
}>);
accept(visitor: GirVisitor): IntrospectedConstant;
copy(options?: {
parent?: IntrospectedNamespace;
type?: TypeExpression;
}): IntrospectedConstant;
static fromXML(element: GirConstantElement, ns: IntrospectedNamespace, options: OptionsLoad): IntrospectedConstant;
asString<T extends FormatGenerator<unknown>>(generator: T): ReturnType<T["generateConst"]>;
}