chore: format all frontend files (#430)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user