{"_id":"@types/babel-code-frame","_rev":"380714","name":"@types/babel-code-frame","description":"TypeScript definitions for babel-code-frame","dist-tags":{"latest":"6.20.5","ts2.0":"6.20.2","ts2.1":"6.20.2","ts2.2":"6.20.2","ts2.3":"6.20.2","ts2.4":"6.20.2","ts2.5":"6.20.2","ts2.6":"6.20.2","ts2.7":"6.20.2","ts2.8":"6.20.2","ts2.9":"6.20.2","ts3.0":"6.20.4","ts3.1":"6.20.4","ts3.2":"6.20.4","ts3.3":"6.20.4","ts3.4":"6.20.4","ts3.5":"6.20.4","ts3.6":"6.20.5","ts3.7":"6.20.5","ts3.8":"6.20.5","ts3.9":"6.20.5","ts4.0":"6.20.5","ts4.1":"6.20.5","ts4.2":"6.20.5","ts4.3":"6.20.5","ts4.4":"6.20.5","ts4.5":"6.20.5","ts4.6":"6.20.5"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2021-11-18T19:41:11.000Z","created":"2016-12-08T14:46:35.883Z","6.20.5":"2021-07-06T18:14:20.795Z","6.20.4":"2020-05-15T23:04:57.793Z","6.20.3":"2020-05-15T04:26:08.176Z","6.20.2":"2019-02-13T16:29:50.289Z","6.20.1":"2017-03-31T00:50:41.476Z","6.20.0":"2016-12-11T17:32:55.741Z","6.16.0":"2016-12-08T14:46:35.883Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/babel-code-frame"},"versions":{"6.20.5":{"name":"@types/babel-code-frame","version":"6.20.5","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"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/babel-code-frame"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"0e3b82e456d62298d5aea395fd1cf257dabb466d8096bcb969188ff42284b9f2","typeScriptVersion":"3.6","_id":"@types/babel-code-frame@6.20.5","dist":{"shasum":"baf30fe92857b380552c79333ab958b0c4e28307","size":1918,"noattachment":false,"key":"/@types/babel-code-frame/-/@types/babel-code-frame-6.20.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/babel-code-frame/download/@types/babel-code-frame-6.20.5.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_6.20.5_1625595260702_0.6125588725731579"},"_hasShrinkwrap":false,"publish_time":1625595260795,"_cnpm_publish_time":1625595260795},"6.20.4":{"name":"@types/babel-code-frame","version":"6.20.4","description":"TypeScript definitions for babel-code-frame","license":"MIT","contributors":[{"name":"Mohsen Azimi","url":"https://github.com/mohsen1","githubUsername":"mohsen1"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/babel-code-frame"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"a864ec9b0ccbfbc6ae03a6b8a0085391f319351ad48b3f0735f5aa49df5768d1","typeScriptVersion":"3.0","_id":"@types/babel-code-frame@6.20.4","dist":{"shasum":"cfd4b0226e0d8587dc8ce0f547cbaabe4e8d2f9d","size":1847,"noattachment":false,"key":"/@types/babel-code-frame/-/@types/babel-code-frame-6.20.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/babel-code-frame/download/@types/babel-code-frame-6.20.4.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_6.20.4_1589583897699_0.6243874505850593"},"_hasShrinkwrap":false,"publish_time":1589583897793,"_cnpm_publish_time":1589583897793},"6.20.3":{"name":"@types/babel-code-frame","version":"6.20.3","description":"TypeScript definitions for babel-code-frame","license":"MIT","contributors":[{"name":"Mohsen Azimi","url":"https://github.com/mohsen1","githubUsername":"mohsen1"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/babel-code-frame"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"d53b31f67323dd29ddb437ea0a1251cd73f807734ed561f1a5343673f4d673cf","typeScriptVersion":"3.0","_id":"@types/babel-code-frame@6.20.3","dist":{"shasum":"ac71995722c65b2a6aa4cf3d89c104cb0186530a","size":1847,"noattachment":false,"key":"/@types/babel-code-frame/-/@types/babel-code-frame-6.20.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/babel-code-frame/download/@types/babel-code-frame-6.20.3.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_6.20.3_1589516768036_0.3537442729513054"},"_hasShrinkwrap":false,"publish_time":1589516768176,"_cnpm_publish_time":1589516768176},"6.20.2":{"name":"@types/babel-code-frame","version":"6.20.2","description":"TypeScript definitions for babel-code-frame","license":"MIT","contributors":[{"name":"Mohsen Azimi","url":"https://github.com/mohsen1","githubUsername":"mohsen1"}],"main":"","types":"index","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"6cf2b9b0044948f0bf0f1fff54bbda2816f63731e4e4cde127b868d5353de845","typeScriptVersion":"2.0","_id":"@types/babel-code-frame@6.20.2","dist":{"shasum":"d923c88d94e66b864fd3693f07b18ad78489a222","size":1839,"noattachment":false,"key":"/@types/babel-code-frame/-/@types/babel-code-frame-6.20.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/babel-code-frame/download/@types/babel-code-frame-6.20.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_6.20.2_1550075390029_0.6355399801789989"},"_hasShrinkwrap":false,"publish_time":1550075390289,"_cnpm_publish_time":1550075390289},"6.20.1":{"name":"@types/babel-code-frame","version":"6.20.1","description":"TypeScript definitions for babel-code-frame","license":"MIT","contributors":[{"name":"Mohsen Azimi","url":"https://github.com/mohsen1"}],"main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"peerDependencies":{},"typesPublisherContentHash":"abe36c6d60d02d191e1ac0d367c17f00afb96436ce71360dff9e5fa68e06a453","typeScriptVersion":"2.0","_id":"@types/babel-code-frame@6.20.1","dist":{"shasum":"e79a40ea81435034df7b46b5e32e8ed638aea4dd","size":1149,"noattachment":false,"key":"/@types/babel-code-frame/-/@types/babel-code-frame-6.20.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/babel-code-frame/download/@types/babel-code-frame-6.20.1.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/babel-code-frame-6.20.1.tgz_1490921439425_0.8396215939428657"},"directories":{},"publish_time":1490921441476,"_cnpm_publish_time":1490921441476,"_hasShrinkwrap":false},"6.20.0":{"name":"@types/babel-code-frame","version":"6.20.0","description":"TypeScript definitions for babel-code-frame","license":"MIT","author":"Mohsen Azimi <https://github.com/mohsen1>","main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"peerDependencies":{},"typesPublisherContentHash":"eb2858b0b901433a87c173502661a37216ebe4d92bf4ecfcd38082e9644c7982","_id":"@types/babel-code-frame@6.20.0","dist":{"shasum":"05477b2adab210785824881481a65917335e5b68","size":1302,"noattachment":false,"key":"/@types/babel-code-frame/-/@types/babel-code-frame-6.20.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/babel-code-frame/download/@types/babel-code-frame-6.20.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/babel-code-frame-6.20.0.tgz_1481477575496_0.9728502035140991"},"directories":{},"publish_time":1481477575741,"_cnpm_publish_time":1481477575741,"_hasShrinkwrap":false},"6.16.0":{"name":"@types/babel-code-frame","version":"6.16.0","description":"TypeScript definitions for babel-code-frame","license":"MIT","author":"Mohsen Azimi <https://github.com/mohsen1>","main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"peerDependencies":{},"typesPublisherContentHash":"3f42c8bb6d77dcdaad6f321d2676ddf1b0962b4937546c5cc3f5b824dc53a20c","_id":"@types/babel-code-frame@6.16.0","dist":{"shasum":"4ba310bd3be0d9d118dadb988d2468bde7657295","size":1295,"noattachment":false,"key":"/@types/babel-code-frame/-/@types/babel-code-frame-6.16.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/babel-code-frame/download/@types/babel-code-frame-6.16.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/babel-code-frame-6.16.0.tgz_1481208395659_0.17593311448581517"},"directories":{},"publish_time":1481208395883,"_cnpm_publish_time":1481208395883,"_hasShrinkwrap":false}},"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).\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 6.20\n// Project: https://github.com/babel/babel/tree/master/packages, https://babeljs.io\n// Definitions by: Mohsen Azimi <https://github.com/mohsen1>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\ninterface 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    linesBelow?: number | undefined;\n    /**  The number of lines to show below the error. default: 3 */\n    linesAbove?: 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\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 */\ndeclare function codeFrame(\n    rawLines: string,\n    lineNumber: number,\n    colNumber: number,\n    options?: BabelCodeFrameOptions\n): string;\n\nexport = codeFrame;\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Tue, 06 Jul 2021 18:05:38 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).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel-code-frame","license":"MIT"}