Skip to content

Commit

Permalink
add declaration: false to tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
mnholtz committed Sep 24, 2024
1 parent 708328d commit 6a53715
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/components/formBuilder/FieldTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { UI_SCHEMA_ACTIVE } from "@/components/formBuilder/schemaFieldNames";
import { noop, uniq } from "lodash";
import { freeze } from "@/utils/objectUtils";

export interface FormPreviewFieldTemplateProps extends FieldTemplateProps {
interface FormPreviewFieldTemplateProps extends FieldTemplateProps {
// Only used in the FormPreview
setActiveField: SetActiveField;
}
Expand Down
8 changes: 3 additions & 5 deletions src/components/jsonTree/JsonTree.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,18 @@ const exampleValues = {
numberField: 42,
};

export const EmptyTree: ComponentStory<typeof JsonTree> = Template.bind({});
export const EmptyTree = Template.bind({});
EmptyTree.args = {
data: {},
};

export const SearchableTree: ComponentStory<typeof JsonTree> = Template.bind(
{},
);
export const SearchableTree = Template.bind({});
SearchableTree.args = {
searchable: true,
data: exampleValues,
};

export const KitchenSink: ComponentStory<typeof JsonTree> = Template.bind({});
export const KitchenSink = Template.bind({});
KitchenSink.args = {
searchable: true,
copyable: true,
Expand Down
10 changes: 3 additions & 7 deletions src/extensionConsole/components/IDBErrorDisplay.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,23 @@ const connectionError = new Error("Error Opening IndexedDB");
const stack =
"ContextError: Encountered full disk while opening backing store for indexedDB.open.\nat k (chrome-extension://my-chrome-extension-id/bundles/85282.bundle.js:2:35318)\n at $ (chrome-extension://my-chrome-extension-id/bundles/85282.bundle.js:2:36577)\n at async L.runExtension (chrome-extension://my-chrome-extension-id/bundles/contentScriptCore.bundle.js:1:220194)";

export const NormalError: ComponentStory<typeof IDBErrorDisplay> =
Template.bind({});
export const NormalError = Template.bind({});
NormalError.args = {
error: normalError,
errorMessage: getErrorMessage(normalError),
stack,
hasError: true,
};

export const QuotaError: ComponentStory<typeof IDBErrorDisplay> = Template.bind(
{},
);
export const QuotaError = Template.bind({});
QuotaError.args = {
error: quotaError,
errorMessage: getErrorMessage(quotaError),
stack,
hasError: true,
};

export const ConnectionError: ComponentStory<typeof IDBErrorDisplay> =
Template.bind({});
export const ConnectionError = Template.bind({});
ConnectionError.args = {
error: connectionError,
errorMessage: getErrorMessage(connectionError),
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"resolveJsonModule": true,
"baseUrl": ".",
"outDir": null,
"declaration": false,

// TODO: Drop these lines to make TS stricter https://github.com/pixiebrix/pixiebrix-extension/issues/775
"strictFunctionTypes": false,
Expand Down

0 comments on commit 6a53715

Please sign in to comment.