Sha256: 4e23c80eec18a861ac6a4e52dfd473c7a4587ab906855ebd4910862a225f60f8

Contents?: true

Size: 1.26 KB

Versions: 20

Compression:

Stored size: 1.26 KB

Contents

import { Node } from 'estree-walker';

export interface AttachedScope {
	parent?: AttachedScope;
	isBlockScope: boolean;
	declarations: { [key: string]: boolean };
	addDeclaration(node: Node, isBlockDeclaration: boolean, isVar: boolean): void;
	contains(name: string): boolean;
}

export interface DataToEsmOptions {
	compact?: boolean;
	indent?: string;
	namedExports?: boolean;
	objectShorthand?: boolean;
	preferConst?: boolean;
}

export type AddExtension = (filename: string, ext?: string) => string;
export const addExtension: AddExtension;

export type AttachScopes = (ast: Node, propertyName?: string) => AttachedScope;
export const attachScopes: AttachScopes;

export type CreateFilter = (
	include?: Array<string | RegExp> | string | RegExp | null,
	exclude?: Array<string | RegExp> | string | RegExp | null,
	options?: { resolve?: string | false | null }
) => (id: string | any) => boolean;
export const createFilter: CreateFilter;

export type MakeLegalIdentifier = (str: string) => string;
export const makeLegalIdentifier: MakeLegalIdentifier;

export type DataToEsm = (data: any, options?: DataToEsmOptions) => string;
export const dataToEsm: DataToEsm;

export type ExtractAssignedNames = (param: Node) => Array<string>;
export const extractAssignedNames: ExtractAssignedNames;

Version data entries

20 entries across 10 versions & 1 rubygems

Version Path
condenser-0.3 lib/condenser/processors/node_modules/rollup-pluginutils/dist/pluginutils.d.ts
condenser-0.3 lib/condenser/processors/node_modules/rollup-pluginutils/src/pluginutils.d.ts
condenser-0.2 lib/condenser/processors/node_modules/rollup-pluginutils/dist/pluginutils.d.ts
condenser-0.2 lib/condenser/processors/node_modules/rollup-pluginutils/src/pluginutils.d.ts
condenser-0.1 lib/condenser/processors/node_modules/rollup-pluginutils/src/pluginutils.d.ts
condenser-0.1 lib/condenser/processors/node_modules/rollup-pluginutils/dist/pluginutils.d.ts
condenser-0.0.12 lib/condenser/processors/node_modules/rollup-pluginutils/src/pluginutils.d.ts
condenser-0.0.12 lib/condenser/processors/node_modules/rollup-pluginutils/dist/pluginutils.d.ts
condenser-0.0.11 lib/condenser/processors/node_modules/rollup-pluginutils/src/pluginutils.d.ts
condenser-0.0.11 lib/condenser/processors/node_modules/rollup-pluginutils/dist/pluginutils.d.ts
condenser-0.0.10 lib/condenser/processors/node_modules/rollup-pluginutils/dist/pluginutils.d.ts
condenser-0.0.10 lib/condenser/processors/node_modules/rollup-pluginutils/src/pluginutils.d.ts
condenser-0.0.9 lib/condenser/processors/node_modules/rollup-pluginutils/dist/pluginutils.d.ts
condenser-0.0.9 lib/condenser/processors/node_modules/rollup-pluginutils/src/pluginutils.d.ts
condenser-0.0.8 lib/condenser/processors/node_modules/rollup-pluginutils/src/pluginutils.d.ts
condenser-0.0.8 lib/condenser/processors/node_modules/rollup-pluginutils/dist/pluginutils.d.ts
condenser-0.0.7 lib/condenser/processors/node_modules/rollup-pluginutils/src/pluginutils.d.ts
condenser-0.0.7 lib/condenser/processors/node_modules/rollup-pluginutils/dist/pluginutils.d.ts
condenser-0.0.5 lib/condenser/processors/node_modules/rollup-pluginutils/src/pluginutils.d.ts
condenser-0.0.5 lib/condenser/processors/node_modules/rollup-pluginutils/dist/pluginutils.d.ts