UNPKG

@tevm/runtime

Version:

Tools for generating the Tevm contract runtime

21 lines (20 loc) 688 B
/** * Represents the different output module types supported by the Tevm runtime. * * The runtime can generate code in various formats to support different bundlers * and environments: * * - `cjs`: CommonJS format, used in Node.js environments * - `dts`: TypeScript declaration files (*.d.ts) for type information * - `ts`: TypeScript source files, used for direct TypeScript imports * - `mjs`: ES Modules format, used in modern JavaScript environments * * @example * ```typescript * import type { ModuleType } from '@tevm/runtime' * * // Specify the desired output format * const format: ModuleType = 'ts' * ``` */ export type ModuleType = 'cjs' | 'dts' | 'ts' | 'mjs'