Sha256: 71cad39a1b37787775ee129081fbe6478b7df00cf38fff7b3d27bdf8a059bb43

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

import { ParserOptions as BabelParserOptions, ParserPlugin } from '@babel/parser';
export type ParserPluginName = Extract<ParserPlugin, string> | Extract<ParserPlugin, [string, object]>[0];
export declare function isParserPluginName(name: string): name is ParserPluginName;
export interface ParserOptions extends Omit<BabelParserOptions, 'plugins'> {
    plugins?: Array<ParserPlugin>;
}
/**
 * Builds options for `@babel/parser` by enabling as many features as possible,
 * while also preserving the options given as an argument.
 */
export declare function buildOptions({ sourceType, allowAwaitOutsideFunction, allowImportExportEverywhere, allowReturnOutsideFunction, allowSuperOutsideMethod, allowUndeclaredExports, plugins, sourceFilename, ...rest }?: ParserOptions): ParserOptions;
/**
 * Gets the name of `plugin`.
 *
 * @example
 *
 *   getPluginName('decorators');            // 'decorators'
 *   getPluginName(['flow', { all: true }]); // 'flow'
 */
export declare function getPluginName(plugin: ParserPlugin): ParserPluginName;

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wice_grid-7.1.0 node_modules/@codemod/parser/build/options.d.ts