-
Notifications
You must be signed in to change notification settings - Fork 3
삐봇 테스트 #1269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
삐봇 테스트 #1269
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,7 +13,7 @@ export type OriginalDining = { | |
| place: DiningPlace; | ||
| price_card: number | null; | ||
| price_cash: number | null; | ||
| kcal: number | null; | ||
| kcal: number; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
기존 nullable을 non-null로 바꾸면, 서버가 As per coding guidelines "src/api/**: 2. 요청/응답 타입이 명확하게 정의되어 있는지 확인해주세요." 🤖 Prompt for AI Agents |
||
| menu: string[]; | ||
| image_url: string | null; | ||
| created_at: string; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| import { APIRequest, HTTP_METHOD } from 'interfaces/APIRequest'; | ||
| import { WeatherResponse } from './entity'; | ||
|
|
||
| export class WeatherInfo<R extends WeatherResponse> implements APIRequest<R> { | ||
| method = HTTP_METHOD.GET; | ||
|
|
||
| path = '/weather'; | ||
|
|
||
| response!: R; | ||
|
|
||
| auth = false; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import { APIResponse } from 'interfaces/APIResponse'; | ||
|
|
||
| export type WeatherId = 1 | 2 | 3 | 4 | 5 | 6 | 7; | ||
|
|
||
| export interface WeatherResponse extends APIResponse { | ||
| temperature: number; | ||
| weather: string; | ||
| weather_id: WeatherId; | ||
| weather_icon_url: string; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| import APIClient from 'utils/ts/apiClient'; | ||
| import { WeatherInfo } from './APIDetail'; | ||
|
|
||
| export const getWeatherInfo = APIClient.of(WeatherInfo); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| import { queryOptions } from '@tanstack/react-query'; | ||
| import { getWeatherInfo } from './index'; | ||
|
|
||
| export const weatherQueryKeys = { | ||
| all: ['weather'] as const, | ||
| info: () => [...weatherQueryKeys.all, 'info'] as const, | ||
| }; | ||
|
|
||
| export const weatherQueries = { | ||
| info: () => | ||
| queryOptions({ | ||
| queryKey: weatherQueryKeys.info(), | ||
| queryFn: getWeatherInfo, | ||
| }), | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
VS Code 공식 설정에서 TypeScript SDK 경로/워크스페이스 버전 프롬프트에 해당하는 정확한 setting key가 무엇인지 확인해줘. (typescript.tsdk,typescript.enablePromptUseWorkspaceTsdk,js/ts.tsdk.path,js/ts.tsdk.promptToUseWorkspaceVersion비교)💡 Result:
정확한 setting key는 다음과 같습니다. 1) VS Code 공식 설정에서 “워크스페이스 tsdk 버전 사용을 위한 프롬프트”를 제어하는 key - typescript.enablePromptUseWorkspaceTsdk [1][2] 2) VS Code 공식 설정에서 “워크스페이스 tsdk 경로(= tsserver.js가 있는 디렉터리)”를 지정하는 key - js/ts.tsdk.path [3][4] - (참고) 질문에 적어주신 typescript.tsdk도 관련 설정이지만, 문서상 경로 지정은 js/ts.tsdk.path로 설명됩니다. 또한 docs에서도 “tsdk 경로만으로는 IntelliSense에 실제 적용이 바로 되지 않고 TypeScript: Select TypeScript Version 명령으로 실제 사용을 시작해야” 한다고 명시합니다. [3][4] 3) 질문에 적어주신 js/ts.tsdk.promptToUseWorkspaceVersion - 해당 key는 VS Code 공식 문서/근거 자료에서 확인되지 않았습니다. (반대로, 대신 typescript.enablePromptUseWorkspaceTsdk가 프롬프트 관련 설정으로 명시됩니다.) [1][2] 요약(비교) - typescript.tsdk: “workspace에 존재하는 TypeScript SDK를 사용하기 위한 설정”으로 언급되지만, 프롬프트 제어 key는 enablePromptUseWorkspaceTsdk입니다. [1][2] - typescript.enablePromptUseWorkspaceTsdk: “워크스페이스 tsdk 버전 사용을 위한 프롬프트”의 정확한 setting key입니다. [1][2] - js/ts.tsdk.path: workspace의 tsserver.js/lib 위치(= tsdk 경로)를 지정하는 key입니다. [3][4] - js/ts.tsdk.promptToUseWorkspaceVersion: 공식 문서상 근거로 확인되지 않았습니다. (프롬프트는 enablePromptUseWorkspaceTsdk로 제어됩니다.) [1][2]
Citations:
VS Code TypeScript SDK 설정 키 불일치 수정 필요
.vscode/settings.json11-12의js/ts.tsdk.path는 문서에 맞는 TypeScript SDK 경로 지정 키입니다.js/ts.tsdk.promptToUseWorkspaceVersion는 VS Code 공식 설정 키로 확인되지 않아 워크스페이스 tsdk “프롬프트/사용” 관련 동작이 누락될 수 있습니다.typescript.enablePromptUseWorkspaceTsdk로 교체하세요.🤖 Prompt for AI Agents