UNPKG

ts-proto

Version:

[![npm](https://img.shields.io/npm/v/ts-proto)](https://www.npmjs.com/package/ts-proto) [![build](https://github.com/stephenh/ts-proto/workflows/Build/badge.svg)](https://github.com/stephenh/ts-proto/actions)

20 lines (19 loc) 637 B
import { TypeMap } from "./types"; import { Utils } from "./main"; import { Options } from "./options"; import { Edition, FileDescriptorProto } from "ts-proto-descriptors"; /** Provides a parameter object for passing around the various context/config data. */ export interface BaseContext { options: Options; typeMap: TypeMap; utils: Utils; } export interface Context extends BaseContext { currentFile: FileContext; } export interface FileContext { isProto3Syntax: boolean; isEdition: boolean; edition: Edition | undefined; } export declare function createFileContext(file: FileDescriptorProto): FileContext;