Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit 1fd684b

Browse files
committed
fix(js): enable typescript completion using window
1 parent 4c5b087 commit 1fd684b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

e2e/__snapshots__/templates.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2963,7 +2963,7 @@ exports[`Templates InstantSearch.js File content: src/app.css 1`] = `
29632963
`;
29642964
29652965
exports[`Templates InstantSearch.js File content: src/app.js 1`] = `
2966-
"/* global algoliasearch instantsearch */
2966+
"const { algoliasearch, instantsearch } = window;
29672967
29682968
const searchClient = algoliasearch('appId', 'apiKey');
29692969

src/templates/InstantSearch.js/src/app.js.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* global algoliasearch instantsearch */
1+
const { algoliasearch, instantsearch } = window;
22

33
const searchClient = algoliasearch('{{appId}}', '{{apiKey}}');
44

0 commit comments

Comments
 (0)