UNPKG

@codama/renderers-js

Version:

JavaScript renderer compatible with the Solana Kit library

7 lines 459 B
import { Path } from '@codama/renderers-core'; import { format } from 'prettier/standalone'; import { RenderOptions } from './options'; export type PrettierOptions = Parameters<typeof format>[1]; export type CodeFormatter = (code: string, path: Path) => Promise<string>; export declare function getCodeFormatter(options: Pick<RenderOptions, 'formatCode' | 'packageFolder' | 'prettierOptions'>): Promise<CodeFormatter>; //# sourceMappingURL=formatCode.d.ts.map