{"_id":"@types/babel__code-frame","_rev":"2802554","name":"@types/babel__code-frame","description":"TypeScript definitions for @babel/code-frame","dist-tags":{"latest":"7.0.3","ts2.0":"7.0.1","ts2.1":"7.0.1","ts2.2":"7.0.1","ts2.3":"7.0.1","ts2.4":"7.0.1","ts2.5":"7.0.1","ts2.6":"7.0.1","ts2.7":"7.0.1","ts2.8":"7.0.1","ts2.9":"7.0.1","ts3.0":"7.0.1","ts3.1":"7.0.1","ts3.2":"7.0.2","ts3.3":"7.0.2","ts3.4":"7.0.2","ts3.5":"7.0.2","ts3.6":"7.0.3","ts3.7":"7.0.3","ts3.8":"7.0.3","ts3.9":"7.0.3","ts4.0":"7.0.3","ts4.1":"7.0.3","ts4.2":"7.0.3","ts4.3":"7.0.3","ts4.4":"7.0.3","ts4.5":"7.0.3","ts4.6":"7.0.3","ts4.7":"7.0.3","ts4.8":"7.0.3","ts4.9":"7.0.3"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2022-09-01T09:21:58.000Z","created":"2018-02-27T23:03:30.262Z","7.0.3":"2021-07-06T18:15:39.548Z","7.0.2":"2020-09-25T23:58:31.733Z","7.0.1":"2019-02-13T21:07:35.388Z","7.0.0":"2018-02-27T23:03:30.262Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/babel__code-frame"},"versions":{"7.0.3":{"name":"@types/babel__code-frame","version":"7.0.3","description":"TypeScript definitions for @babel/code-frame","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel__code-frame","license":"MIT","contributors":[{"name":"Mohsen Azimi","url":"https://github.com/mohsen1","githubUsername":"mohsen1"},{"name":"Forbes Lindesay","url":"https://github.com/ForbesLindesay","githubUsername":"ForbesLindesay"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/babel__code-frame"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"ef46fc0d289bd4227b745d5ea1e3b994b7fff04c38a6d165f06b384f2cc9479f","typeScriptVersion":"3.6","_id":"@types/babel__code-frame@7.0.3","dist":{"shasum":"eda94e1b7c9326700a4b69c485ebbc9498a0b63f","size":2149,"noattachment":false,"key":"/@types/babel__code-frame/-/@types/babel__code-frame-7.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/babel__code-frame/download/@types/babel__code-frame-7.0.3.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel__code-frame_7.0.3_1625595339419_0.7510862808661742"},"_hasShrinkwrap":false,"publish_time":1625595339548,"_cnpm_publish_time":1625595339548,"_cnpmcore_publish_time":"2021-12-16T18:32:59.054Z"},"7.0.2":{"name":"@types/babel__code-frame","version":"7.0.2","description":"TypeScript definitions for @babel/code-frame","license":"MIT","contributors":[{"name":"Mohsen Azimi","url":"https://github.com/mohsen1","githubUsername":"mohsen1"},{"name":"Forbes Lindesay","url":"https://github.com/ForbesLindesay","githubUsername":"ForbesLindesay"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/babel__code-frame"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"698686beb4a32cd9c28b129906c106d97632965f919400c4be88633fc157bf91","typeScriptVersion":"3.2","_id":"@types/babel__code-frame@7.0.2","dist":{"shasum":"e0c0f1648cbc09a9d4e5b4ed2ae9a6f7c8f5aeb0","size":2060,"noattachment":false,"key":"/@types/babel__code-frame/-/@types/babel__code-frame-7.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/babel__code-frame/download/@types/babel__code-frame-7.0.2.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel__code-frame_7.0.2_1601078311623_0.37517937385017697"},"_hasShrinkwrap":false,"publish_time":1601078311733,"_cnpm_publish_time":1601078311733,"_cnpmcore_publish_time":"2021-12-16T18:32:59.289Z"},"7.0.1":{"name":"@types/babel__code-frame","version":"7.0.1","description":"TypeScript definitions for @babel/code-frame","license":"MIT","contributors":[{"name":"Mohsen Azimi","url":"https://github.com/mohsen1","githubUsername":"mohsen1"},{"name":"Forbes Lindesay","url":"https://github.com/ForbesLindesay","githubUsername":"ForbesLindesay"}],"main":"","types":"index","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"9dde49f764a1e02da0cfbd3ad5813aa1b65a866ecec216ad2f98b89fddc9c095","typeScriptVersion":"2.0","_id":"@types/babel__code-frame@7.0.1","dist":{"shasum":"baf2529c4abbfb5e4008c845efcfe39a187e2f99","size":2041,"noattachment":false,"key":"/@types/babel__code-frame/-/@types/babel__code-frame-7.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/babel__code-frame/download/@types/babel__code-frame-7.0.1.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel__code-frame_7.0.1_1550092055236_0.08350319421576091"},"_hasShrinkwrap":false,"publish_time":1550092055388,"_cnpm_publish_time":1550092055388,"_cnpmcore_publish_time":"2021-12-16T18:32:59.478Z"},"7.0.0":{"name":"@types/babel__code-frame","version":"7.0.0","description":"TypeScript definitions for @babel/code-frame","license":"MIT","contributors":[{"name":"Mohsen Azimi","url":"https://github.com/mohsen1","githubUsername":"mohsen1"},{"name":"Forbes Lindesay","url":"https://github.com/ForbesLindesay","githubUsername":"ForbesLindesay"}],"main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"b89a6d72029b27bca1091a1afb52ad6dfb732435135865f5e13db63ad9c55f26","typeScriptVersion":"2.0","_id":"@types/babel__code-frame@7.0.0","dist":{"shasum":"d5658827984c1e386c1b4ef30699b344d3f732a2","size":2042,"noattachment":false,"key":"/@types/babel__code-frame/-/@types/babel__code-frame-7.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/babel__code-frame/download/@types/babel__code-frame-7.0.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel__code-frame_7.0.0_1519772610201_0.16720316669927837"},"_hasShrinkwrap":false,"publish_time":1519772610262,"_cnpm_publish_time":1519772610262,"_cnpmcore_publish_time":"2021-12-16T18:32:59.689Z"}},"readme":"# Installation\r\n> `npm install --save @types/babel__code-frame`\r\n\r\n# Summary\r\nThis package contains type definitions for @babel/code-frame (https://github.com/babel/babel/tree/master/packages/babel-code-frame).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel__code-frame.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel__code-frame/index.d.ts)\r\n````ts\r\n// Type definitions for @babel/code-frame 7.0\n// Project: https://github.com/babel/babel/tree/master/packages/babel-code-frame, https://babeljs.io\n// Definitions by: Mohsen Azimi <https://github.com/mohsen1>\n//                 Forbes Lindesay <https://github.com/ForbesLindesay>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\nexport interface SourceLocation {\n    start: { line: number; column?: number | undefined };\n    end?: { line: number; column?: number | undefined } | undefined;\n}\nexport function codeFrameColumns(\n    rawLines: string,\n    location: SourceLocation,\n    options?: BabelCodeFrameOptions\n): string;\n\nexport interface BabelCodeFrameOptions {\n    /** Syntax highlight the code as JavaScript for terminals. default: false */\n    highlightCode?: boolean | undefined;\n    /**  The number of lines to show above the error. default: 2 */\n    linesAbove?: number | undefined;\n    /**  The number of lines to show below the error. default: 3 */\n    linesBelow?: number | undefined;\n    /**\n     * Forcibly syntax highlight the code as JavaScript (for non-terminals);\n     * overrides highlightCode.\n     * default: false\n     */\n    forceColor?: boolean | undefined;\n    /**\n     * Pass in a string to be displayed inline (if possible) next to the\n     * highlighted location in the code. If it can't be positioned inline,\n     * it will be placed above the code frame.\n     * default: nothing\n     */\n    message?: string | undefined;\n}\n\n/**\n * Generate errors that contain a code frame that point to source locations.\n *\n * @param rawLines Raw lines to frame\n * @param lineNumber Line number (1 indexed)\n * @param colNumber Column number\n * @param options Additional options\n *\n * @returns Framed code\n */\nexport default function codeFrame(\n    rawLines: string,\n    lineNumber: number,\n    colNumber: number,\n    options?: BabelCodeFrameOptions\n): string;\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Tue, 06 Jul 2021 18:05:40 GMT\r\n * Dependencies: none\r\n * Global values: none\r\n\r\n# Credits\r\nThese definitions were written by [Mohsen Azimi](https://github.com/mohsen1), and [Forbes Lindesay](https://github.com/ForbesLindesay).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel__code-frame","license":"MIT"}