@cosmology/ast
Version:
Cosmos TypeScript AST generation
11 lines (10 loc) • 390 B
TypeScript
import * as t from "@babel/types";
import { ProtoParseContext } from "../../context";
import { ProtoType } from "@cosmology/types";
export * from "./utils";
export declare const registerTypeUrlMethod: (args: {
context: ProtoParseContext;
name: string;
proto: ProtoType;
}) => t.ObjectMethod;
export declare const createRegisterType: (typeName: string) => t.ExpressionStatement;