@@ -3130,7 +3130,7 @@ exports[`Templates InstantSearch.js File content: index.html 1`] = `
3130
3130
<div id =\\"pagination\\"></div>
3131
3131
</div>
3132
3132
3133
- <script src =\\"https://cdn.jsdelivr.net/algoliasearch/3.32.0 /algoliasearchLite.min.js\\"></script>
3133
+ <script src =\\"https://cdn.jsdelivr.net/algoliasearch/4.10.4 /algoliasearchLite.min.js\\"></script>
3134
3134
<script src =\\"https://cdn.jsdelivr.net/npm/[email protected] \\"></script>
3135
3135
<script src =\\"./src/app.js\\"></script>
3136
3136
</body>
@@ -3168,7 +3168,9 @@ exports[`Templates InstantSearch.js File content: package.json 1`] = `
3168
3168
\\" lint\\ " : \\" eslint .\\ " ,
3169
3169
\\" lint:fix\\ " : \\" npm run lint -- --fix\\ "
3170
3170
} ,
3171
- \\"partialDependencies\\": { }
3171
+ \\"partialDependencies\\": {
3172
+ \\" instantsearch.js\\ " : \\" 3.0.0\\ "
3173
+ }
3172
3174
}"
3173
3175
`;
3174
3176
@@ -3277,6 +3279,18 @@ search.addWidgets([
3277
3279
search.start();"
3278
3280
`;
3279
3281
3282
+ exports[`Templates InstantSearch.js File content: src/global.d.ts 1`] = `
3283
+ " import algoliasearch from 'algoliasearch/lite';
3284
+ import instantsearch from 'instantsearch.js/dist/instantsearch.production.min';
3285
+
3286
+ declare global {
3287
+ interface Window {
3288
+ algoliasearch: typeof algoliasearch;
3289
+ instantsearch: typeof instantsearch;
3290
+ }
3291
+ }"
3292
+ `;
3293
+
3280
3294
exports[`Templates InstantSearch.js File content: src/index.css 1`] = `
3281
3295
" body,
3282
3296
h1 {
@@ -3290,6 +3304,27 @@ body {
3290
3304
}"
3291
3305
`;
3292
3306
3307
+ exports[`Templates InstantSearch.js File content: tsconfig.json 1`] = `
3308
+ " {
3309
+ \\" compilerOptions\\": {
3310
+ \\" module\\ " : \\" commonjs\\ " ,
3311
+ \\" esModuleInterop\\ " : true ,
3312
+ \\" sourceMap\\ " : true ,
3313
+ \\" allowJs\\ " : true ,
3314
+ \\" lib\\ " : [
3315
+ \\" es6\\ " ,
3316
+ \\" dom\\ "
3317
+ ],
3318
+ \\" rootDir\\ " : \\" src\\ " ,
3319
+ \\" moduleResolution\\ " : \\" node\\ "
3320
+ } ,
3321
+ \\"include\\": [
3322
+ \\"src\\",
3323
+ \\"src/global.d.ts\\"
3324
+ ]
3325
+ }"
3326
+ `;
3327
+
3293
3328
exports[`Templates InstantSearch.js Folder structure: contains the right files 1`] = `
3294
3329
Array [
3295
3330
" .editorconfig" ,
@@ -3304,7 +3339,9 @@ Array [
3304
3339
" package.json" ,
3305
3340
" src/app.css" ,
3306
3341
" src/app.js" ,
3342
+ " src/global.d.ts" ,
3307
3343
" src/index.css" ,
3344
+ " tsconfig.json" ,
3308
3345
]
3309
3346
`;
3310
3347
0 commit comments