mirror of
https://github.com/github/awesome-copilot.git
synced 2026-03-13 12:45:13 +00:00
Fix type-only imports for SearchItem across page scripts
Use 'type' modifier on SearchItem imports to satisfy verbatimModuleSyntax. Without this, esbuild strips the interface export but leaves the value import, causing a runtime error. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
* Agents page functionality
|
* Agents page functionality
|
||||||
*/
|
*/
|
||||||
import { createChoices, getChoicesValues, type Choices } from '../choices';
|
import { createChoices, getChoicesValues, type Choices } from '../choices';
|
||||||
import { FuzzySearch, SearchItem } from '../search';
|
import { FuzzySearch, type SearchItem } from '../search';
|
||||||
import { fetchData, debounce, escapeHtml, getGitHubUrl, getInstallDropdownHtml, setupDropdownCloseHandlers, getActionButtonsHtml, setupActionHandlers, getLastUpdatedHtml } from '../utils';
|
import { fetchData, debounce, escapeHtml, getGitHubUrl, getInstallDropdownHtml, setupDropdownCloseHandlers, getActionButtonsHtml, setupActionHandlers, getLastUpdatedHtml } from '../utils';
|
||||||
import { setupModal, openFileModal } from '../modal';
|
import { setupModal, openFileModal } from '../modal';
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* Hooks page functionality
|
* Hooks page functionality
|
||||||
*/
|
*/
|
||||||
import { createChoices, getChoicesValues, type Choices } from "../choices";
|
import { createChoices, getChoicesValues, type Choices } from "../choices";
|
||||||
import { FuzzySearch, SearchItem } from "../search";
|
import { FuzzySearch, type SearchItem } from "../search";
|
||||||
import {
|
import {
|
||||||
fetchData,
|
fetchData,
|
||||||
debounce,
|
debounce,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* Instructions page functionality
|
* Instructions page functionality
|
||||||
*/
|
*/
|
||||||
import { createChoices, getChoicesValues, type Choices } from '../choices';
|
import { createChoices, getChoicesValues, type Choices } from '../choices';
|
||||||
import { FuzzySearch, SearchItem } from '../search';
|
import { FuzzySearch, type SearchItem } from '../search';
|
||||||
import { fetchData, debounce, escapeHtml, getGitHubUrl, getInstallDropdownHtml, setupDropdownCloseHandlers, getActionButtonsHtml, setupActionHandlers, getLastUpdatedHtml } from '../utils';
|
import { fetchData, debounce, escapeHtml, getGitHubUrl, getInstallDropdownHtml, setupDropdownCloseHandlers, getActionButtonsHtml, setupActionHandlers, getLastUpdatedHtml } from '../utils';
|
||||||
import { setupModal, openFileModal } from '../modal';
|
import { setupModal, openFileModal } from '../modal';
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* Plugins page functionality
|
* Plugins page functionality
|
||||||
*/
|
*/
|
||||||
import { createChoices, getChoicesValues, type Choices } from '../choices';
|
import { createChoices, getChoicesValues, type Choices } from '../choices';
|
||||||
import { FuzzySearch, SearchItem } from '../search';
|
import { FuzzySearch, type SearchItem } from '../search';
|
||||||
import { fetchData, debounce, escapeHtml, getGitHubUrl } from '../utils';
|
import { fetchData, debounce, escapeHtml, getGitHubUrl } from '../utils';
|
||||||
import { setupModal, openFileModal } from '../modal';
|
import { setupModal, openFileModal } from '../modal';
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* Skills page functionality
|
* Skills page functionality
|
||||||
*/
|
*/
|
||||||
import { createChoices, getChoicesValues, type Choices } from "../choices";
|
import { createChoices, getChoicesValues, type Choices } from "../choices";
|
||||||
import { FuzzySearch, SearchItem } from "../search";
|
import { FuzzySearch, type SearchItem } from "../search";
|
||||||
import {
|
import {
|
||||||
fetchData,
|
fetchData,
|
||||||
debounce,
|
debounce,
|
||||||
|
|||||||
Reference in New Issue
Block a user