From d6a68f64301fe57a8cd50f8fbddde83e4aeddc23 Mon Sep 17 00:00:00 2001 From: Orchard Date: Thu, 11 Jan 2024 22:39:51 +0800 Subject: [PATCH] feat: unnecessary to rename `pathParamName` --- CHANGELOG.md | 6 ++++++ .../TsResultModal/ResultRenameDrawer/constants.ts | 6 +----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a8458ad..6bdd5b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to the "tswagger" extension will be documented in this file. Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file. +## [Unreleased] + +### Changed + +- Unnecessary to rename `pathParamName`. + ## [1.2.6] - 2024-01-10 ### Changed diff --git a/webview/src/components/TsResultModal/ResultRenameDrawer/constants.ts b/webview/src/components/TsResultModal/ResultRenameDrawer/constants.ts index 1adbb5a..6df565f 100644 --- a/webview/src/components/TsResultModal/ResultRenameDrawer/constants.ts +++ b/webview/src/components/TsResultModal/ResultRenameDrawer/constants.ts @@ -2,7 +2,7 @@ import { ApiGroupNameMapping } from '../../../../../src/types'; export type ApiGroupItemConfigType = { label: string; - key: keyof Pick; + key: keyof Pick; }; export const apiGroupItemConfigs: ApiGroupItemConfigType[] = [ @@ -10,10 +10,6 @@ export const apiGroupItemConfigs: ApiGroupItemConfigType[] = [ label: '接口方法名称', key: 'serviceName', }, - { - label: '路径参数类型名称', - key: 'pathParamName', - }, { label: '携带参数类型名称', key: 'pathQueryName',