@maverick-js/compiler
Version:
Maverick toolchain including the analyzer and compiler.
11 lines (10 loc) • 568 B
TypeScript
import ts from 'typescript';
import { type PropMeta } from './component';
export interface PropMetaInfo {
attribute?: string;
reflect?: boolean;
value?: string | false;
type: ts.Type;
}
export declare function buildPropsMeta(checker: ts.TypeChecker, definition: ts.ObjectLiteralExpression, typeRoot?: ts.Type): PropMeta[] | undefined;
export declare function buildPropMeta(checker: ts.TypeChecker, name: string, node: ts.PropertyDeclaration | ts.GetAccessorDeclaration | ts.SetAccessorDeclaration | ts.PropertySignature, info: PropMetaInfo): PropMeta;