Skip to content

Commit

Permalink
fix: type definition in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed Jul 7, 2022
1 parent 954b828 commit 7461707
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
i18n_generated.js
i18n_generated.d.ts
i18n_generated.d.ts.map
.swc

# VSCode personal settings
.vscode/launch.json
Expand Down
4 changes: 2 additions & 2 deletions packages/scripts/src/utils/prettier.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Config, format, resolveConfig, resolveConfigFile } from 'prettier'
import { format, Options, resolveConfig, resolveConfigFile } from 'prettier'
import { ROOT_PATH } from './paths'

export async function prettier(code: string, parser: Config['parser'] = 'typescript') {
export async function prettier(code: string, parser: Options['parser'] = 'typescript') {
const configPath = await resolveConfigFile(ROOT_PATH)
const config = configPath ? await resolveConfig(configPath) : {}
return format(code, {
Expand Down

0 comments on commit 7461707

Please sign in to comment.