|
|
@@ -2,7 +2,7 @@ import { defineConfig as defineOxfmtConfig } from 'oxfmt';
|
|
|
|
|
|
type OxfmtConfig = Parameters<typeof defineOxfmtConfig>[0];
|
|
|
|
|
|
-const oxfmtConfig = defineOxfmtConfig({
|
|
|
+const oxfmtConfig: OxfmtConfig = defineOxfmtConfig({
|
|
|
printWidth: 80,
|
|
|
proseWrap: 'never',
|
|
|
semi: true,
|
|
|
@@ -28,7 +28,7 @@ const oxfmtConfig = defineOxfmtConfig({
|
|
|
],
|
|
|
});
|
|
|
|
|
|
-function defineConfig(config: OxfmtConfig = {}) {
|
|
|
+function defineConfig(config: OxfmtConfig = {}): OxfmtConfig {
|
|
|
return defineOxfmtConfig({
|
|
|
...oxfmtConfig,
|
|
|
...config,
|