From b5276c324fd2ac501c2a6faceb386f35c6d7c351 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sat, 27 Feb 2021 19:47:54 +0100 Subject: [PATCH] Fix file extension in example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 76fe375..92e873c 100644 --- a/README.md +++ b/README.md @@ -199,7 +199,7 @@ import 'alpinejs'; - We import Alpine *after* this package
-resources/js/search.js +resources/js/search.ts ```ts import { AlpineComponent } from '@leanadmin/alpine-typescript'; @@ -316,7 +316,7 @@ export default class Search extends AlpineComponent {
-**`search.js` highlights:** +**`search.ts` highlights:** - We `export default` the class - We have to call `super()` if we define a constructor - Sometimes, we have to use `as HTMLElement` because the DOM API can return `Element` which doesn't have methods like `focus()`