React/typescriptPromptLocationType/
utterances-bot opened this issue · comments
TypeScript React - Prompt message location TypeError | hyesungoh
문제 custom prompt를 개발하는 중, 위 코드의 message에 해당하는 부분이 에러 발생 Type ‘Location’ is missing the following properties from type ‘Location’: ancestorOrigins, host, hostname, href, and 6 more. 은 보다 속성 몇가지가 없다고 한다. 그래서 위 에 으로 작성을 하면 Type ‘Location’ is not generic.ts(231…
https://www.hyesungoh.xyz/React/typescriptPromptLocationType/
추가적으로
import { Location } from "history"
처럼 사용할 수 있습니당