Skip to content

Commit

Permalink
chore: typescript 4.6.4 (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fran McDade authored and Fran McDade committed Feb 22, 2024
1 parent bdaebb1 commit 662da95
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 25 deletions.
14 changes: 7 additions & 7 deletions packages/data-explorer-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/data-explorer-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"prettier-plugin-organize-imports": "^3.2.2",
"storybook": "^7.6.17",
"ts-jest": "^29.0.5",
"typescript": "^4.9.4"
"typescript": "^4.6.4"
},
"peerDependencies": {
"@emotion/react": "11.11.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default {
layout: "fullscreen",
},
title: "Components/Layout/Footer",
} satisfies Meta<typeof Footer>;
} as Meta<typeof Footer>;

type Story = StoryObj<typeof Footer>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default {
},
component: AuthenticationMenu,
title: "Components/Navigation/AuthenticationMenu",
} satisfies Meta<typeof AuthenticationMenu>;
} as Meta<typeof AuthenticationMenu>;

const AuthenticationMenuTemplate: StoryFn<typeof AuthenticationMenu> = (
args
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default {
layout: "fullscreen",
},
title: "Components/Layout/Header",
} satisfies Meta<typeof Header>;
} as Meta<typeof Header>;

type Story = StoryObj<typeof Header>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export async function uploadAttachment<T extends File>(
* @returns response.
*/
async function fetchWithErrorRejection(
input: RequestInfo | URL,
input: string,
options?: RequestInit
): Promise<Response> {
const res = await fetch(input, options);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default {
},
component: Alert,
title: "Components/Common/Alert",
} satisfies Meta<typeof Alert>;
} as Meta<typeof Alert>;

type Story = StoryObj<typeof Alert>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Code } from "./code";
const meta = {
component: Code,
title: "Components/Common/Code",
} satisfies Meta<typeof Code>;
} as Meta<typeof Code>;

export default meta;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ComponentMeta, ComponentStory } from "@storybook/react";
import * as React from "react";
import { Meta, StoryObj } from "@storybook/react";
import { CopyToClipboard } from "./copyToClipboard";

export default {
Expand All @@ -10,13 +9,12 @@ export default {
},
component: CopyToClipboard,
title: "Components/Common/CopyToClipboard",
} satisfies ComponentMeta<typeof CopyToClipboard>;
} as Meta<typeof CopyToClipboard>;

const CopyToClipboardTemplate: ComponentStory<typeof CopyToClipboard> = (
args
) => <CopyToClipboard {...args} />;
type Story = StoryObj<typeof CopyToClipboard>;

export const CopyToClipboardStory = CopyToClipboardTemplate.bind({});
CopyToClipboardStory.args = {
copyStr: "Copy me",
export const CopyToClipboardStory: Story = {
args: {
copyStr: "Copy me",
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
},
component: Socials,
title: "Components/Navigation/SocialLinks",
} satisfies Meta<typeof Socials>;
} as Meta<typeof Socials>;

type Story = StoryObj<typeof Socials>;

Expand Down
1 change: 0 additions & 1 deletion packages/data-explorer-ui/src/entity/service/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import * as apiEntityService from "../api/service";
import * as apicfEntityService from "../apicf/service";
import * as entityService from "../common/service";
import * as tsvEntityService from "../tsv/service";

import { EntityService, EntityServiceType } from "./model";

const API_ENTITY_SERVICE: EntityService = {
Expand Down

0 comments on commit 662da95

Please sign in to comment.