babylon/000755 001751 000177 0000000000 14522265600014165 5ustar00runner000000 000000 1452226560014522265600babylon/LICENSE000644 001751 000177 0000002165 14522265600015176 0ustar00runner000000 000000 1452226560014522265600 MIT License Copyright (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE babylon/README.md000644 001751 000177 0000004272 14522265600015461 0ustar00runner000000 000000 1452227455414522265600# Installation > `npm install --save @types/babylon` # Summary This package contains type definitions for babylon (https://github.com/babel/babylon). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babylon. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babylon/index.d.ts) ````ts import { Expression, File } from "babel-types"; export function parse(code: string, opts?: BabylonOptions): File; export function parseExpression(input: string, options?: BabylonOptions): Expression; export interface BabylonOptions { /** * By default, import and export declarations can only appear at a program's top level. * Setting this option to true allows them anywhere where a statement is allowed. */ allowImportExportEverywhere?: boolean | undefined; /** * By default, a return statement at the top level raises an error. Set this to true to accept such code. */ allowReturnOutsideFunction?: boolean | undefined; allowSuperOutsideMethod?: boolean | undefined; /** * Indicate the mode the code should be parsed in. Can be either "script" or "module". */ sourceType?: "script" | "module" | undefined; /** * Correlate output AST nodes with their source filename. Useful when * generating code and source maps from the ASTs of multiple input files. */ sourceFilename?: string | undefined; /** * Array containing the plugins that you want to enable. */ plugins?: PluginName[] | undefined; } export type PluginName = | "estree" | "jsx" | "flow" | "typescript" | "classConstructorCall" | "doExpressions" | "objectRestSpread" | "decorators" | "classProperties" | "exportExtensions" | "asyncGenerators" | "functionBind" | "functionSent" | "dynamicImport"; ```` ### Additional Details * Last updated: Mon, 06 Nov 2023 22:41:04 GMT * Dependencies: [@types/babel-types](https://npmjs.com/package/@types/babel-types) # Credits These definitions were written by [Troy Gerwien](https://github.com/yortus), and [Marvin Hagemeister](https://github.com/marvinhagemeister). babylon/index.d.ts000644 001751 000177 0000002765 14522265600016100 0ustar00runner000000 000000 1452226560014522265600import { Expression, File } from "babel-types"; export function parse(code: string, opts?: BabylonOptions): File; export function parseExpression(input: string, options?: BabylonOptions): Expression; export interface BabylonOptions { /** * By default, import and export declarations can only appear at a program's top level. * Setting this option to true allows them anywhere where a statement is allowed. */ allowImportExportEverywhere?: boolean | undefined; /** * By default, a return statement at the top level raises an error. Set this to true to accept such code. */ allowReturnOutsideFunction?: boolean | undefined; allowSuperOutsideMethod?: boolean | undefined; /** * Indicate the mode the code should be parsed in. Can be either "script" or "module". */ sourceType?: "script" | "module" | undefined; /** * Correlate output AST nodes with their source filename. Useful when * generating code and source maps from the ASTs of multiple input files. */ sourceFilename?: string | undefined; /** * Array containing the plugins that you want to enable. */ plugins?: PluginName[] | undefined; } export type PluginName = | "estree" | "jsx" | "flow" | "typescript" | "classConstructorCall" | "doExpressions" | "objectRestSpread" | "decorators" | "classProperties" | "exportExtensions" | "asyncGenerators" | "functionBind" | "functionSent" | "dynamicImport"; babylon/package.json000644 001751 000177 0000001742 14522265600016467 0ustar00runner000000 000000 1452227455414522265600{ "name": "@types/babylon", "version": "6.16.9", "description": "TypeScript definitions for babylon", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babylon", "license": "MIT", "contributors": [ { "name": "Troy Gerwien", "githubUsername": "yortus", "url": "https://github.com/yortus" }, { "name": "Marvin Hagemeister", "githubUsername": "marvinhagemeister", "url": "https://github.com/marvinhagemeister" } ], "main": "", "types": "index.d.ts", "repository": { "type": "git", "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", "directory": "types/babylon" }, "scripts": {}, "dependencies": { "@types/babel-types": "*" }, "typesPublisherContentHash": "96209fdad6613f29debbb307cbcb6884e60b41399d0e5a58528076dd4348157b", "typeScriptVersion": "4.5" }