Skip to content

Commit

Permalink
Configure types for virtual user-config module
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis committed Mar 28, 2023
1 parent 180ed79 commit da028c1
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 2 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
"version": "1.0.0",
"description": "",
"scripts": {},
"license": "MIT"
"license": "MIT",
"devDependencies": {
"astro": "^2.1.7"
}
}
1 change: 1 addition & 0 deletions packages/starbook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"exports": {
".": "./index.ts",
"./schema": "./schema.ts",
"./types": "./types.ts",
"./index.astro": "./index.astro"
},
"peerDependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/starbook/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { StarbookConfig } from './utils/user-config';
4 changes: 4 additions & 0 deletions packages/starbook/virtual.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module 'virtual:starbook/user-config' {
const Config: import('./types').StarbookConfig;
export default Config;
}
5 changes: 4 additions & 1 deletion pnpm-lock.yaml

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

3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "astro/tsconfigs/strictest"
}

0 comments on commit da028c1

Please sign in to comment.