Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: properly type vitepress/theme #494

Closed
wants to merge 1 commit into from
Closed

fix: properly type vitepress/theme #494

wants to merge 1 commit into from

Conversation

brc-dd
Copy link
Member

@brc-dd brc-dd commented Jan 9, 2022

Earlier there was import DefaultTheme from './dist/client/theme-default/index' in ./theme.d.ts. But since, ./dist/client/theme-default/index.d.ts is not bundled, the type of DefaultTheme was any.

Changed content of ./theme.d.ts based on what TSC generates in ./dist/temp/theme-default/index.d.ts on running pnpm tsc -p src/client --declaration --emitDeclarationOnly --outDir dist/temp (first part of build-types-client script).

The other changes were done by prettier on running pnpm lint. And refer #489 for the changes in package.json.

@brc-dd brc-dd closed this Jan 15, 2022
@brc-dd brc-dd reopened this Jan 15, 2022
@yyx990803 yyx990803 closed this in eabf6d2 Jan 15, 2022
@brc-dd brc-dd deleted the patch-3 branch January 15, 2022 16:56
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant