UNPKG

@tevm/ts-plugin

Version:
27 lines (24 loc) 889 B
import typescript from 'typescript/lib/tsserverlibrary.js'; /** * TypeScript server plugin factory that enables Solidity support in TypeScript. * This plugin allows direct importing of .sol files in TypeScript with proper * type definitions, code navigation, and IDE support. * * The plugin works by decorating the TypeScript language service to handle * Solidity files, compile them with solc, and provide TypeScript definitions. * * Add to your tsconfig.json: * @example * ```json * { * "compilerOptions": { * "plugins": [{ "name": "tevm-ts-plugin" }] * } * } * ``` * * @see https://github.com/microsoft/TypeScript/wiki/Writing-a-Language-Service-Plugin * @see https://github.com/microsoft/TypeScript/wiki/Writing-a-Language-Service-Plugin#decorator-creation */ declare const tsPlugin: typescript.server.PluginModuleFactory; export { tsPlugin as default };