chore: format all frontend files (#430)

This commit is contained in:
tecvan
2025-07-31 23:15:48 +08:00
committed by GitHub
parent 8b078ff013
commit 6995cec404
8787 changed files with 11975 additions and 10924 deletions

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type { IdlConfig } from './utils';
class ConfigCenter {
@@ -30,7 +30,9 @@ export const configCenter = new ConfigCenter();
export function registerConfig(service: string, config: IdlConfig): void {
if (configCenter.getConfig(service)) {
console.warn(`${service} api config has already been set,make sure they are the same`);
console.warn(
`${service} api config has already been set,make sure they are the same`,
);
}
configCenter.register(service, config);
}

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { type IOptions, normalizeRequest } from './utils';
import type { IMeta, CustomAPIMeta } from './types';
@@ -40,7 +40,12 @@ export interface CancelAbleApi<T, K, O = unknown, B extends boolean = false>
* @returns
*/
// eslint-disable-next-line max-params
export function createAPI<T extends {}, K, O = unknown, B extends boolean = false>(
export function createAPI<
T extends {},
K,
O = unknown,
B extends boolean = false,
>(
meta: IMeta,
cancelable?: B,
useCustom = false,

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from './create-api';
export * from './config-center';
export { type IMeta } from './types';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export interface IMeta {
reqType: string;
resType: string;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import qs from 'qs';
import type { IMeta } from './types';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { defineConfig } from '@coze-arch/vitest-config';
export default defineConfig({