export-typescript
Functions
- Automatically export typescript files when newly creating an index.ts file.
- While in an
index.tsfile, run this extension ("Export Typescript: Write exports") to addexport * from ./for each sibling file/folder in the current directory. - Explicitly export declarations like
export { Foo, Bar } from ./by settingexportStar=falsein the config.
Config
The default configuration exports all sibling .ts files and folders with a index.ts file.
"export-typescript.excludes":["*.{spec.ts,spec.tsx}"],
"export-typescript.includes":["*.{ts,tsx}", "*/index.{ts,tsx}"],
"export-typescript.exportStar": true
"export-typescript.includes":["*.{ts,tsx}", "*/index.{ts,tsx}"],
"export-typescript.exportStar": true
In order to export declarations and look for files in subdirectories recursively, put the following in your .vscode/settings.json:
"export-typescript.excludes":["**/*.{spec.ts,spec.tsx}"],
"export-typescript.includes":["**/*.{ts,tsx}"],
"export-typescript.exportStar": false
"export-typescript.includes":["**/*.{ts,tsx}"],
"export-typescript.exportStar": false