UNPKG

479 BTypeScriptView Raw
1import { ParserOptions, Plugin } from 'prettier';
2import { File, Node, ShOptions } from 'sh-syntax';
3export interface Processor {
4 (text: string, options?: ShOptions): File;
5 (text: string, options?: ShOptions & {
6 print: true;
7 }): string;
8 (ast: File, options?: ShOptions & {
9 originalText: string;
10 }): string;
11}
12export declare type ShParserOptions = ParserOptions<Node> & ShOptions;
13declare const ShPlugin: Plugin<Node>;
14export default ShPlugin;