{"_id":"@component-controls/follow-imports","_rev":"1-cde3a15a26765eeb18f0c72135d6c6ab","name":"@component-controls/follow-imports","dist-tags":{"latest":"4.0.3"},"versions":{"4.0.3":{"name":"@component-controls/follow-imports","version":"4.0.3","description":"follow module imports until finding the file exporting the keyword","keywords":["babel","imports","exports"],"main":"dist/index.js","module":"dist/index.esm.js","typings":"dist/index.d.ts","scripts":{"build":"yarn cross-env NODE_ENV=production rollup -c","dev":"yarn cross-env NODE_ENV=development rollup -cw","docs":"api-readme","fix":"yarn lint --fix","lint":"yarn eslint . --ext mdx,ts,tsx","prepare":"yarn build","test":"yarn jest"},"homepage":"https://github.com/ccontrols/component-controls","bugs":{"url":"https://github.com/ccontrols/component-controls/issues"},"repository":{"type":"git","url":"git+https://github.com/ccontrols/component-controls.git","directory":"misc/follow-imports"},"license":"MIT","dependencies":{"@babel/parser":"^7.12.5","@babel/traverse":"^7.12.5","@structured-types/typescript-config":"^3.16.2","typescript":"^4.2.4"},"devDependencies":{"@babel/types":"^7.12.6"},"publishConfig":{"access":"public"},"authors":["Atanas Stoyanov"],"jest":{"roots":["./test"]},"gitHead":"c31f66fb91f771e7c8da3988616962f1b40d52af","_id":"@component-controls/follow-imports@4.0.3","_nodeVersion":"17.3.0","_npmVersion":"lerna/3.22.1/node@v17.3.0+x64 (darwin)","dist":{"integrity":"sha512-zDA2fK+/tZei1Ey5A9tVDvJwuzTgtG2aZ8rQTtQN3q7WgCUFyqq6u6mQDeTDaeutGf0vb0M1YdyI9yZPG/VgJw==","shasum":"63e7f1d35deb06527084ed1ac8be20ebcf2f5173","tarball":"https://registry.npmjs.org/@component-controls/follow-imports/-/follow-imports-4.0.3.tgz","fileCount":12,"unpackedSize":115102,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4QZRCRA9TVsSAnZWagAAG+oP/jF1CdlXduGlFQ2KCYze\nRe0Jkpgtv0iyYPVSZKLLZXXGSrS/fbmikRmpXseDkzX3WTTBMPsXIcF3IfPZ\nfnhi5RqGD/UyxKnyYQYChnOyCb6GwFM6jQHj69xSqDQdumLrXIrzhgvV/qxp\na+ti34h0KPbzeSHWbhmS50gC5WSjCzvb/ubEGGyHnB5FNH2CaYdtBXss4tCD\nHIbaedD537EM6FV6jw+EuLyJvIs+TplP4zEqKieT313ziHFe8h3qmUo3dM5l\n35iWx1NpFMV21mG9LvfOcfFTUS8Mvsa5gGmMpoxDUD+c/6wV/B5ldchG1jeJ\nBpNMtgd9/GRTrmcWUyFkNjD5GJXwM5nMXVUR15RU/nO25jd0KOPPpIPIp85o\nnwnnJz48NQ937xQQT2HuhEBo3XF8aVBVDzuihCEXDE98geVmn+RbM9mjo5BS\nEXL5VQjV5V+5Pcq1IdosPcoQmjDJ7UdPToZpJ02AqtrimbUvruFeCoD0kGR6\nhWEGtJUP0TVyYJPblA4UziMPsdl3SGdxV8EuvljBvnsKtAYIP4HYw0y5xYrR\nMSSVc27eIxyDDFb+hiATyRO/+0fYZ/ujPoFbuT8SFjE7gLc8KJ53xSi/uzBm\nf4HlOQReSTVtclV6BAY5s5udSYaTBdd7j3KHDsnIN7rwLxd8t5V42YAMRmJV\nsOoO\r\n=SbID\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG4ZbzTfwNnyQaVpUwKEVThqDjVPrHdStXox1cDLBCThAiA8adYx3/x/k+3vDnfTfMSKRryCCsXd0glDgxpmRjVr0w=="}]},"_npmUser":{"name":"atanasster","email":"atanasster@gmail.com"},"directories":{},"maintainers":[{"name":"atanasster","email":"atanasster@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/follow-imports_4.0.3_1642137169535_0.14090156698917644"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-14T05:12:49.480Z","4.0.3":"2022-01-14T05:12:49.699Z","modified":"2022-04-05T00:41:00.781Z"},"maintainers":[{"name":"atanasster","email":"atanasster@gmail.com"}],"description":"follow module imports until finding the file exporting the keyword","homepage":"https://github.com/ccontrols/component-controls","keywords":["babel","imports","exports"],"repository":{"type":"git","url":"git+https://github.com/ccontrols/component-controls.git","directory":"misc/follow-imports"},"bugs":{"url":"https://github.com/ccontrols/component-controls/issues"},"license":"MIT","readme":"# Table of contents\n\n-   [Overview](#overview)\n-   [Installation](#installation)\n-   [API](#api)\n    -   [defaultParserOptions](#defaultparseroptions)\n    -   [defaultResolveOptions](#defaultresolveoptions)\n    -   [ExportType](#exporttype)\n    -   [parseFile](#parsefile)\n    -   [extractImports](#extractimports)\n    -   [extractExports](#extractexports)\n    -   [sourceLocation](#sourcelocation)\n    -   [getASTSource](#getastsource)\n    -   [FollowImportType](#followimporttype)\n    -   [EXPORT_ALL](#export_all)\n    -   [EXPORT_DEFAULT](#export_default)\n    -   [IMPORT_NAMESPACE](#import_namespace)\n    -   [NamedExportTypes](#namedexporttypes)\n    -   [ExportTypes](#exporttypes)\n    -   [followImports](#followimports)\n    -   [ImportType](#importtype)\n    -   [ImportTypes](#importtypes)\n\n# Overview\n\nfollow file imports using pabel ast parsing to find the file where an imported keyword was exported from (and is defined in).\n\n# Installation\n\n```bash\n$ npm install @component-controls/follow-imports --save-dev\n```\n\n# API\n\n<api-readme />\n\n<!-- START-API-README -->\n\n## defaultParserOptions\n\n**`interface`**\n\n_defined in [@component-controls/follow-imports/misc/follow-imports/src/consts.ts](https://github.com/ccontrols/component-controls/tree/master/misc/follow-imports/src/consts.ts#L5)_\n\n**properties**\n\n| Name                             | Type                                        | Parent          | Default    | Description                                                                                                                                                                                                                                                                                                                        |\n| -------------------------------- | ------------------------------------------- | --------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `allowImportExportEverywhere`    | `boolean`                                   | `ParserOptions` |            | 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.                                                                                                                                                                |\n| `allowAwaitOutsideFunction`      | `boolean`                                   | `ParserOptions` |            | By default, await use is not allowed outside of an async function. Set this to true to accept such code.                                                                                                                                                                                                                           |\n| `allowReturnOutsideFunction`     | `boolean`                                   | `ParserOptions` |            | By default, a return statement at the top level raises an error. Set this to true to accept such code.                                                                                                                                                                                                                             |\n| `allowSuperOutsideMethod`        | `boolean`                                   | `ParserOptions` |            |                                                                                                                                                                                                                                                                                                                                    |\n| `allowUndeclaredExports`         | `boolean`                                   | `ParserOptions` |            | By default, exported identifiers must refer to a declared variable. Set this to true to allow export statements to reference undeclared variables.                                                                                                                                                                                 |\n| `attachComment`                  | `boolean`                                   | `ParserOptions` |            | By default, Babel attaches comments to adjacent AST nodes. When this option is set to false, comments are not attached. It can provide up to 30% performance improvement when the input code has many comments.                                                                                                                    |\n| `errorRecovery`                  | `boolean`                                   | `ParserOptions` |            | By default, Babel always throws an error when it finds some invalid code. When this option is set to true, it will store the parsing error and try to continue parsing the invalid input file.                                                                                                                                     |\n| `sourceType`                     | `\"script\"` \\| `\"module\"` \\| `\"unambiguous\"` | `ParserOptions` | `\"module\"` | Indicate the mode the code should be parsed in. Can be one of \"script\", \"module\", or \"unambiguous\". Defaults to \"script\". \"unambiguous\" will make @babel/parser attempt to guess, based on the presence of ES6 import or export statements. Files with ES6 imports and exports are considered \"module\" and are otherwise \"script\". |\n| `sourceFilename`                 | `string`                                    | `ParserOptions` |            | Correlate output AST nodes with their source filename. Useful when generating code and source maps from the ASTs of multiple input files.                                                                                                                                                                                          |\n| `startLine`                      | `number`                                    | `ParserOptions` |            | By default, the first line of code parsed is treated as line 1. You can provide a line number to alternatively start with. Useful for integration with other source tools.                                                                                                                                                         |\n| `plugins`                        | `ParserPlugin`\\[]                           | `ParserOptions` |            | Array containing the plugins that you want to enable.                                                                                                                                                                                                                                                                              |\n| `strictMode`                     | `boolean`                                   | `ParserOptions` |            | Should the parser work in strict mode. Defaults to true if sourceType === 'module'. Otherwise, false.                                                                                                                                                                                                                              |\n| `ranges`                         | `boolean`                                   | `ParserOptions` |            | Adds a ranges property to each node: \\[node.start, node.end]                                                                                                                                                                                                                                                                       |\n| `tokens`                         | `boolean`                                   | `ParserOptions` |            | Adds all parsed tokens to a tokens property on the File node.                                                                                                                                                                                                                                                                      |\n| `createParenthesizedExpressions` | `boolean`                                   | `ParserOptions` |            | By default, the parser adds information about parentheses by setting  `extra.parenthesized`  to  `true`  as needed. When this option is  `true`  the parser creates  `ParenthesizedExpression`  AST nodes instead of using the  `extra`  property.                                                                                 |\n\n## defaultResolveOptions\n\n**`interface`**\n\n_defined in [@component-controls/follow-imports/misc/follow-imports/src/consts.ts](https://github.com/ccontrols/component-controls/tree/master/misc/follow-imports/src/consts.ts#L16)_\n\n**extends**\n\n`Opts`\n\n**properties**\n\n| Name               | Type                                                                                                          | Parent     | Default                                                                                                                           | Description                                                                                                                                                                                                                                                                                                                                            |\n| ------------------ | ------------------------------------------------------------------------------------------------------------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| `readFileSync`     | **function** (<br />`file`\\*: `string`<br />`charset`\\*: `string`<br />) => `string` \\| `Buffer`              | `SyncOpts` |                                                                                                                                   | how to read files synchronously (defaults to fs.readFileSync)                                                                                                                                                                                                                                                                                          |\n| `isFile`           | **function** (<br />`file`\\*: `string`<br />) => `boolean`                                                    | `SyncOpts` |                                                                                                                                   | function to synchronously test whether a file exists                                                                                                                                                                                                                                                                                                   |\n| `basedir`          | `string`                                                                                                      | `Opts`     |                                                                                                                                   | directory to begin resolving from (defaults to \\_\\_dirname)                                                                                                                                                                                                                                                                                            |\n| `package`          | `any`                                                                                                         | `Opts`     |                                                                                                                                   | package.json data applicable to the module being loaded                                                                                                                                                                                                                                                                                                |\n| `extensions`       | `string` \\| `ReadonlyArray`&lt;`string`>                                                                      | `Opts`     | `[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]` | array of file extensions to search in order (defaults to \\['.js'])                                                                                                                                                                                                                                                                                     |\n| `packageFilter`    | **function** (<br />`pkg`\\*: `any`<br />`pkgfile`\\*: `string`<br />) => `any`                                 | `Opts`     |                                                                                                                                   | transform the parsed package.json contents before looking at the \"main\" field                                                                                                                                                                                                                                                                          |\n| `pathFilter`       | **function** (<br />`pkg`\\*: `any`<br />`path`\\*: `string`<br />`relativePath`\\*: `string`<br />) => `string` | `Opts`     |                                                                                                                                   | transform a path within a package                                                                                                                                                                                                                                                                                                                      |\n| `paths`            | `string` \\| `ReadonlyArray`&lt;`string`>                                                                      | `Opts`     |                                                                                                                                   | require.paths array to use if nothing is found on the normal node_modules recursive walk (probably don't use this)                                                                                                                                                                                                                                     |\n| `moduleDirectory`  | `string` \\| `ReadonlyArray`&lt;`string`>                                                                      | `Opts`     |                                                                                                                                   | directory (or directories) in which to recursively look for modules. (default to 'node_modules')                                                                                                                                                                                                                                                       |\n| `preserveSymlinks` | `boolean`                                                                                                     | `Opts`     |                                                                                                                                   | if true, doesn't resolve  `basedir`  to real path before resolving. This is the way Node resolves dependencies when executed with the --preserve-symlinks flag.  Note: this property is currently true by default but it will be changed to false in the next major version because Node's resolution algorithm does not preserve symlinks by default. |\n\n## ExportType\n\n**`interface`**\n\n_defined in [@component-controls/follow-imports/misc/follow-imports/src/consts.ts](https://github.com/ccontrols/component-controls/tree/master/misc/follow-imports/src/consts.ts#L20)_\n\n**properties**\n\n| Name            | Type                                                                                                                                                                                                                                                                                                                  | Description                                                                                     |\n| --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |\n| `name*`         | `string`                                                                                                                                                                                                                                                                                                              |                                                                                                 |\n| `internalName*` | `string`                                                                                                                                                                                                                                                                                                              |                                                                                                 |\n| `loc`           | <details><summary>`SourceLocation`</summary><blockquote><details><summary>`start`\\*</summary><blockquote>`line`\\*: `number`<br />`column`\\*: `number`</blockquote></details><details><summary>`end`\\*</summary><blockquote>`line`\\*: `number`<br />`column`\\*: `number`</blockquote></details></blockquote></details> |                                                                                                 |\n| `from`          | `string`                                                                                                                                                                                                                                                                                                              | in case of export { Button } from './button-named-export'; specifies the import from statememnt |\n| `node`          | `any`                                                                                                                                                                                                                                                                                                                 |                                                                                                 |\n| `path`          | `any`                                                                                                                                                                                                                                                                                                                 |                                                                                                 |\n\n## parseFile\n\n**`function`**\n\n_defined in [@component-controls/follow-imports/misc/follow-imports/src/ast_store.ts](https://github.com/ccontrols/component-controls/tree/master/misc/follow-imports/src/ast_store.ts#L15)_\n\n**parameters**\n\n| Name         | Type                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | Default |\n| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |\n| `filePath*`  | `string`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |         |\n| `options`    | <details><summary>`parser.ParserOptions`</summary><blockquote>`allowImportExportEverywhere`: `boolean`<br />`allowAwaitOutsideFunction`: `boolean`<br />`allowReturnOutsideFunction`: `boolean`<br />`allowSuperOutsideMethod`: `boolean`<br />`allowUndeclaredExports`: `boolean`<br />`attachComment`: `boolean`<br />`errorRecovery`: `boolean`<br />`sourceType`: `\"script\"` \\| `\"module\"` \\| `\"unambiguous\"`<br />`sourceFilename`: `string`<br />`startLine`: `number`<br />`plugins`: `ParserPlugin`\\[]<br />`strictMode`: `boolean`<br />`ranges`: `boolean`<br />`tokens`: `boolean`<br />`createParenthesizedExpressions`: `boolean`</blockquote></details>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |         |\n| `sourceCode` | `string`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |         |\n| `cache*`     | `boolean`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | `true`  |\n| `returns`    | <details><summary>`CacheProps`</summary><blockquote><details><summary>`ast`\\*</summary><blockquote>`type`\\*: `string`<br /><details><summary>`program`\\*</summary><blockquote>`type`\\*: `string`<br />`body`\\*: `Statement`\\[]<br />`directives`\\*: `Directive`\\[]<br />`sourceType`\\*: `\"script\"` \\| `\"module\"`<br />`interpreter`: `InterpreterDirective` \\| `null`<br />`sourceFile`\\*: `string`<br />`leadingComments`\\*: `ReadonlyArray`&lt;`Comment`> \\| `null`<br />`innerComments`\\*: `ReadonlyArray`&lt;`Comment`> \\| `null`<br />`trailingComments`\\*: `ReadonlyArray`&lt;`Comment`> \\| `null`<br />`start`\\*: `number` \\| `null`<br />`end`\\*: `number` \\| `null`<br />`loc`\\*: `SourceLocation` \\| `null`<br />`range`: \\[`number`, `number`]<br />`extra`: `Record`&lt;`string`, `unknown`></blockquote></details>`comments`: ((`CommentBlock`, `CommentLine`))\\[] \\| `null`<br />`tokens`: `any`\\[] \\| `null`<br />`leadingComments`\\*: `ReadonlyArray`&lt;`Comment`> \\| `null`<br />`innerComments`\\*: `ReadonlyArray`&lt;`Comment`> \\| `null`<br />`trailingComments`\\*: `ReadonlyArray`&lt;`Comment`> \\| `null`<br />`start`\\*: `number` \\| `null`<br />`end`\\*: `number` \\| `null`<br />`loc`\\*: `SourceLocation` \\| `null`<br />`range`: \\[`number`, `number`]<br />`extra`: `Record`&lt;`string`, `unknown`></blockquote></details>`source`\\*: `string`<br />`imports`: [`ImportTypes`](#importtypes)<br />`exports`: [`ExportTypes`](#exporttypes)<br />`importAliases`: `Record`&lt;`string`, `string`></blockquote></details> |         |\n\n## extractImports\n\n**`function`**\n\n_defined in [@component-controls/follow-imports/misc/follow-imports/src/extract-imports.ts](https://github.com/ccontrols/component-controls/tree/master/misc/follow-imports/src/extract-imports.ts#L19)_\n\n**parameters**\n\n| Name        | Type                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |\n| ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `fileName*` | `string`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |\n| `options*`  | <details><summary>`ParserOptions`</summary><blockquote>`allowImportExportEverywhere`: `boolean`<br />`allowAwaitOutsideFunction`: `boolean`<br />`allowReturnOutsideFunction`: `boolean`<br />`allowSuperOutsideMethod`: `boolean`<br />`allowUndeclaredExports`: `boolean`<br />`attachComment`: `boolean`<br />`errorRecovery`: `boolean`<br />`sourceType`: `\"script\"` \\| `\"module\"` \\| `\"unambiguous\"`<br />`sourceFilename`: `string`<br />`startLine`: `number`<br />`plugins`: `ParserPlugin`\\[]<br />`strictMode`: `boolean`<br />`ranges`: `boolean`<br />`tokens`: `boolean`<br />`createParenthesizedExpressions`: `boolean`</blockquote></details> |\n| `returns`   | [`ImportTypes`](#importtypes)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |\n\n## extractExports\n\n**`function`**\n\n_defined in [@component-controls/follow-imports/misc/follow-imports/src/extract-exports.ts](https://github.com/ccontrols/component-controls/tree/master/misc/follow-imports/src/extract-exports.ts#L32)_\n\n**parameters**\n\n| Name        | Type                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |\n| ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `fileName*` | `string`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |\n| `options*`  | <details><summary>`ParserOptions`</summary><blockquote>`allowImportExportEverywhere`: `boolean`<br />`allowAwaitOutsideFunction`: `boolean`<br />`allowReturnOutsideFunction`: `boolean`<br />`allowSuperOutsideMethod`: `boolean`<br />`allowUndeclaredExports`: `boolean`<br />`attachComment`: `boolean`<br />`errorRecovery`: `boolean`<br />`sourceType`: `\"script\"` \\| `\"module\"` \\| `\"unambiguous\"`<br />`sourceFilename`: `string`<br />`startLine`: `number`<br />`plugins`: `ParserPlugin`\\[]<br />`strictMode`: `boolean`<br />`ranges`: `boolean`<br />`tokens`: `boolean`<br />`createParenthesizedExpressions`: `boolean`</blockquote></details> |\n| `returns`   | [`ExportTypes`](#exporttypes)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |\n\n## sourceLocation\n\n**`function`**\n\n_defined in [@component-controls/follow-imports/misc/follow-imports/src/source-location.ts](https://github.com/ccontrols/component-controls/tree/master/misc/follow-imports/src/source-location.ts#L3)_\n\n**parameters**\n\n| Name      | Type                            |\n| --------- | ------------------------------- |\n| `loc*`    | `SourceLocation` \\| `null`      |\n| `returns` | `SourceLocation` \\| `undefined` |\n\n## getASTSource\n\n**`function`**\n\n_defined in [@component-controls/follow-imports/misc/follow-imports/src/source.ts](https://github.com/ccontrols/component-controls/tree/master/misc/follow-imports/src/source.ts#L3)_\n\n**parameters**\n\n| Name      | Type                                                                                                                                                                                                                                                                                                                  |\n| --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `source`  | `string`                                                                                                                                                                                                                                                                                                              |\n| `loc`     | <details><summary>`SourceLocation`</summary><blockquote><details><summary>`start`\\*</summary><blockquote>`line`\\*: `number`<br />`column`\\*: `number`</blockquote></details><details><summary>`end`\\*</summary><blockquote>`line`\\*: `number`<br />`column`\\*: `number`</blockquote></details></blockquote></details> |\n| `returns` | `string` \\| `undefined`                                                                                                                                                                                                                                                                                               |\n\n## FollowImportType\n\n**`interface`**\n\n_defined in [@component-controls/follow-imports/misc/follow-imports/src/index.ts](https://github.com/ccontrols/component-controls/tree/master/misc/follow-imports/src/index.ts#L27)_\n\n**properties**\n\n| Name           | Type                                                                                                                                                                                                                                                                                                                  |\n| -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `exportedAs`   | `string`                                                                                                                                                                                                                                                                                                              |\n| `internalName` | `string`                                                                                                                                                                                                                                                                                                              |\n| `from`         | `string`                                                                                                                                                                                                                                                                                                              |\n| `filePath`     | `string`                                                                                                                                                                                                                                                                                                              |\n| `importedName` | `string`                                                                                                                                                                                                                                                                                                              |\n| `loc`          | <details><summary>`SourceLocation`</summary><blockquote><details><summary>`start`\\*</summary><blockquote>`line`\\*: `number`<br />`column`\\*: `number`</blockquote></details><details><summary>`end`\\*</summary><blockquote>`line`\\*: `number`<br />`column`\\*: `number`</blockquote></details></blockquote></details> |\n| `source`       | `string`                                                                                                                                                                                                                                                                                                              |\n| `imported`     | `string`                                                                                                                                                                                                                                                                                                              |\n| `imports`      | [`ImportTypes`](#importtypes)                                                                                                                                                                                                                                                                                         |\n| `node`         | `any`                                                                                                                                                                                                                                                                                                                 |\n| `path`         | `any`                                                                                                                                                                                                                                                                                                                 |\n\n## EXPORT_ALL\n\n**`string` = \"\\*\"**\n\n_defined in [@component-controls/follow-imports/misc/follow-imports/src/consts.ts](https://github.com/ccontrols/component-controls/tree/master/misc/follow-imports/src/consts.ts#L32)_\n\n## EXPORT_DEFAULT\n\n**`string` = \"default\"**\n\n_defined in [@component-controls/follow-imports/misc/follow-imports/src/consts.ts](https://github.com/ccontrols/component-controls/tree/master/misc/follow-imports/src/consts.ts#L33)_\n\n## IMPORT_NAMESPACE\n\n**`string` = \"namespace\"**\n\n_defined in [@component-controls/follow-imports/misc/follow-imports/src/consts.ts](https://github.com/ccontrols/component-controls/tree/master/misc/follow-imports/src/consts.ts#L35)_\n\n## NamedExportTypes\n\n**`interface`**\n\n_defined in [@component-controls/follow-imports/misc/follow-imports/src/consts.ts](https://github.com/ccontrols/component-controls/tree/master/misc/follow-imports/src/consts.ts#L37)_\n\n**properties**\n\n| Name   | Type                                           |\n| ------ | ---------------------------------------------- |\n| `key*` | \\[`string`]: [`ExportType`](#exporttype)<br /> |\n\n## ExportTypes\n\n**`interface`**\n\n_defined in [@component-controls/follow-imports/misc/follow-imports/src/consts.ts](https://github.com/ccontrols/component-controls/tree/master/misc/follow-imports/src/consts.ts#L40)_\n\n**properties**\n\n| Name       | Type                                    |\n| ---------- | --------------------------------------- |\n| `default*` | [`NamedExportTypes`](#namedexporttypes) |\n| `named*`   | [`NamedExportTypes`](#namedexporttypes) |\n\n## followImports\n\n**`function`**\n\n_defined in [@component-controls/follow-imports/misc/follow-imports/src/index.ts](https://github.com/ccontrols/component-controls/tree/master/misc/follow-imports/src/index.ts#L41)_\n\n**parameters**\n\n| Name          | Type                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |\n| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `importName*` | `string`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |\n| `filePath*`   | `string`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |\n| `options`     | <details><summary>`type`</summary><blockquote><details><summary>`parser`</summary><blockquote>`allowImportExportEverywhere`: `boolean`<br />`allowAwaitOutsideFunction`: `boolean`<br />`allowReturnOutsideFunction`: `boolean`<br />`allowSuperOutsideMethod`: `boolean`<br />`allowUndeclaredExports`: `boolean`<br />`attachComment`: `boolean`<br />`errorRecovery`: `boolean`<br />`sourceType`: `\"script\"` \\| `\"module\"` \\| `\"unambiguous\"`<br />`sourceFilename`: `string`<br />`startLine`: `number`<br />`plugins`: `ParserPlugin`\\[]<br />`strictMode`: `boolean`<br />`ranges`: `boolean`<br />`tokens`: `boolean`<br />`createParenthesizedExpressions`: `boolean`</blockquote></details><details><summary>`resolver`</summary><blockquote>`readFileSync`: **function** (<br />`file`\\*: `string`<br />`charset`\\*: `string`<br />) => `string` \\| `Buffer`<br />`isFile`: **function** (<br />`file`\\*: `string`<br />) => `boolean`<br />`basedir`: `string`<br />`package`: `any`<br />`extensions`: `string` \\| `ReadonlyArray`&lt;`string`><br />`packageFilter`: **function** (<br />`pkg`\\*: `any`<br />`pkgfile`\\*: `string`<br />) => `any`<br />`pathFilter`: **function** (<br />`pkg`\\*: `any`<br />`path`\\*: `string`<br />`relativePath`\\*: `string`<br />) => `string`<br />`paths`: `string` \\| `ReadonlyArray`&lt;`string`><br />`moduleDirectory`: `string` \\| `ReadonlyArray`&lt;`string`><br />`preserveSymlinks`: `boolean`</blockquote></details>`resolveFile`: **function** (<br />`importName`\\*: `string`<br />`filePath`\\*: `string`<br />) => `string` \\| `undefined`</blockquote></details> |\n| `returns`     | [`FollowImportType`](#followimporttype) \\| `undefined`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |\n\n## ImportType\n\n**`interface`**\n\n_defined in [@component-controls/follow-imports/misc/follow-imports/src/consts.ts](https://github.com/ccontrols/component-controls/tree/master/misc/follow-imports/src/consts.ts#L45)_\n\n**properties**\n\n| Name            | Type     | Description                                                                       |\n| --------------- | -------- | --------------------------------------------------------------------------------- |\n| `name*`         | `string` | component name                                                                    |\n| `importedName*` | `string` | importedName - the original named import that was aliased                         |\n| `from*`         | `string` | imported from                                                                     |\n| `typesFile`     | `string` | imported from alias file name ie '/component-controls/core/store/dist/index.d.ts' |\n| `componentKey`  | `string` | key into components table                                                         |\n\n## ImportTypes\n\n**`interface`**\n\n_defined in [@component-controls/follow-imports/misc/follow-imports/src/consts.ts](https://github.com/ccontrols/component-controls/tree/master/misc/follow-imports/src/consts.ts#L70)_\n\n**properties**\n\n| Name   | Type                                           |\n| ------ | ---------------------------------------------- |\n| `key*` | \\[`string`]: [`ImportType`](#importtype)<br /> |\n\n<!-- END-API-README -->\n","readmeFilename":"README.md"}