Skip to content

Commit

Permalink
Ennhance type definitions with exports
Browse files Browse the repository at this point in the history
  • Loading branch information
AS1100K committed Dec 19, 2024
1 parent fbd6819 commit 6c80703
Show file tree
Hide file tree
Showing 11 changed files with 142 additions and 20 deletions.
2 changes: 1 addition & 1 deletion badges/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
81 changes: 64 additions & 17 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions dist/types/index.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions dist/types/main.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions dist/types/toolchain.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions dist/types/types.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions dist/types/utils.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"author": "Aditya Kumar",
"private": false,
"homepage": "https://github.com/rs-workspace/rust-toolchain",
"main": "./dist/index.js",
"types": "./dist/types/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/rs-workspace/rust-toolchain.git"
Expand Down
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ import { run } from './main'

// eslint-disable-next-line @typescript-eslint/no-floating-promises
run()

export * from './main'
export * as toolchain from './toolchain'
export * as utils from './utils'
export * as types from './types'
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"newLine": "lf"
"newLine": "lf",
"declaration": true,
"declarationDir": "./types"
},
"exclude": ["./dist", "./node_modules", "./__tests__", "./coverage"]
}

0 comments on commit 6c80703

Please sign in to comment.