Skip to content

Commit

Permalink
fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoux committed May 16, 2024
1 parent 38e3bb5 commit f0adb86
Show file tree
Hide file tree
Showing 12 changed files with 3,394 additions and 3,489 deletions.
13 changes: 7 additions & 6 deletions apps/api/drizzle.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { type Config } from "drizzle-kit";
import { defineConfig } from "drizzle-kit";

export default {
export default defineConfig({
schema: "./src/config/drizzle/schema.ts",
out: "./drizzle",
driver: "pg",
dialect: "postgresql",
dbCredentials: {
connectionString:
url:
process.env["DATABASE_URL"] ??
"postgresql://postgres@localhost:2345/acme",
},
} satisfies Config;
verbose: true,
strict: true,
});
8 changes: 4 additions & 4 deletions apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
"@acme/eslint-config": "workspace:*",
"@acme/tsconfig": "workspace:*",
"@total-typescript/ts-reset": "0.5.1",
"@types/node": "20.12.11",
"@types/node": "20.12.12",
"dotenv": "16.4.5",
"dotenv-cli": "7.4.2",
"drizzle-kit": "0.20.18",
"drizzle-kit": "0.21.2",
"eslint": "8.57.0",
"tsx": "4.9.3",
"typescript": "5.4.5",
"tsx": "4.10.3",
"typescript": "5.5.0-dev.20240516",
"vitest": "1.6.0"
},
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions apps/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
"@acme/eslint-config": "workspace:*",
"@acme/tsconfig": "workspace:*",
"@total-typescript/ts-reset": "0.5.1",
"@types/node": "20.12.11",
"@types/node": "20.12.12",
"@types/yargs": "17.0.32",
"eslint": "8.57.0",
"execa": "8.0.1",
"tsx": "4.9.3",
"typescript": "5.4.5",
"execa": "9.1.0",
"tsx": "4.10.3",
"typescript": "5.5.0-dev.20240516",
"vitest": "1.6.0",
"wait-for-localhost": "4.0.1"
},
Expand Down
4 changes: 2 additions & 2 deletions apps/cli/test/run.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { type Options, execaCommand } from "execa";
import { type Options, type Result, execaCommand } from "execa";
import { fileURLToPath } from "node:url";

export async function run(command: string, options?: Options) {
export async function run(command: string, options?: Options): Promise<Result> {
const processedCommand = command.replace(
"acme",
process.env["CI"]
Expand Down
24 changes: 12 additions & 12 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,26 @@
"@acme/eslint-config": "workspace:*",
"@playwright/experimental-ct-react": "1.44.0",
"@playwright/test": "1.44.0",
"@storybook/addon-a11y": "7.6.19",
"@storybook/addon-essentials": "7.6.19",
"@storybook/addon-interactions": "7.6.19",
"@storybook/addon-links": "7.6.19",
"@storybook/addon-a11y": "8.1.1",
"@storybook/addon-essentials": "8.1.1",
"@storybook/addon-interactions": "8.1.1",
"@storybook/addon-links": "8.1.1",
"@storybook/jest": "0.2.3",
"@storybook/react": "7.6.19",
"@storybook/react-vite": "7.6.19",
"@storybook/test-runner": "0.17.0",
"@storybook/react": "8.1.1",
"@storybook/react-vite": "8.1.1",
"@storybook/test-runner": "0.18.0",
"@storybook/testing-library": "0.2.2",
"@total-typescript/ts-reset": "0.5.1",
"@types/node": "20.12.11",
"@types/react": "18.3.1",
"@types/node": "20.12.12",
"@types/react": "18.3.2",
"@types/react-dom": "18.3.0",
"@vitejs/plugin-react": "4.2.1",
"axe-playwright": "2.0.1",
"eslint": "8.57.0",
"start-server-and-test": "2.0.3",
"storybook": "7.6.19",
"typescript": "5.4.5",
"storybook": "8.1.1",
"typescript": "5.5.0-dev.20240516",
"vite": "5.2.11",
"vite-bundle-visualizer": "1.1.0"
"vite-bundle-visualizer": "1.2.1"
}
}
11 changes: 10 additions & 1 deletion apps/web/src/stories/Header.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,16 @@ export const LoggedIn: Story = {
user: {
name: "Jane Doe",
},
onCreateAccount: () => void 0,
onLogin: () => void 0,
onLogout: () => void 0,
},
};

export const LoggedOut: Story = {};
export const LoggedOut: Story = {
args: {
onCreateAccount: () => void 0,
onLogin: () => void 0,
onLogout: () => void 0,
},
};

0 comments on commit f0adb86

Please sign in to comment.