> For the complete documentation index, see [llms.txt](https://typescript-jp.gitbook.io/deep-dive/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://typescript-jp.gitbook.io/deep-dive/main-1/jquery.md).

# JQuery tips

注意：これらのTipsのために`jquery.d.ts`ファイルをインストールする必要があります

## 新しいプラグインをすばやく定義する

次のように`jquery-foo.d.ts`を作成してください：

```typescript
interface JQuery {
  foo: any;
}
```

そして、あなたは`$('something').foo({whateverYouWant:'hello jquery plugin'})`を使うことができます。
