Property 'methodName' does not exist on type 'JQuery<HTMLElement>'
제이쿼리(JQuery)에 등록된 @types 가 아닌,
임의로 작성된 또는 별도로 생성된 메소드를 인계받는 경우,
타입스트립트로 변환하려면, 없는 메소드라며 컴파일이 되지 않는다.
그럴때, 해당파일 최상단 이나 또는 d.ts 파일에 넣으면 되는 interface 코드
declare global {
interface JQuery {
methodName:() => {}
}
}
출처 : how-can-we-create-a-custom-jquery-plugin-using-typescript