= X extends Y ? X : Y;
+
+// Curry a function
+export type Curry = (
+ ...args: Cast>
+) => Drop, P> extends [any, ...any[]]
+ ? Curry, P>, any[]>, R>
+ : R;
diff --git a/packages/shared/src/types/prettify.ts b/packages/shared/src/types/prettify.ts
new file mode 100644
index 0000000..259e8fb
--- /dev/null
+++ b/packages/shared/src/types/prettify.ts
@@ -0,0 +1,3 @@
+export type Prettify = {
+ [K in keyof T]: T[K];
+} & {};
diff --git a/packages/shared/tsconfig.json b/packages/shared/tsconfig.json
new file mode 100644
index 0000000..d63fcc2
--- /dev/null
+++ b/packages/shared/tsconfig.json
@@ -0,0 +1,13 @@
+{
+ "$schema": "https://json.schemastore.org/tsconfig",
+ "display": "React Library",
+ "extends": "./src/config/typescript.json",
+ "compilerOptions": {
+ "lib": ["ES2015", "DOM"],
+ "module": "ESNext",
+ "target": "ES6",
+ "jsx": "react-jsx",
+ "types": ["vitest"],
+ "noEmit": true
+ }
+}
diff --git a/packages/shared/vite.config.ts b/packages/shared/vite.config.ts
new file mode 100644
index 0000000..49c382b
--- /dev/null
+++ b/packages/shared/vite.config.ts
@@ -0,0 +1,11 @@
+///
+import react from "@vitejs/plugin-react";
+import tsconfigPaths from "vite-tsconfig-paths";
+import { defineConfig } from "vitest/config";
+
+export default defineConfig({
+ test: {
+ environment: "jsdom",
+ },
+ plugins: [tsconfigPaths(), react()],
+});
diff --git a/public/locales/pt-BR.json b/public/locales/pt-BR.json
index 2e39001..d9f4f4c 100644
--- a/public/locales/pt-BR.json
+++ b/public/locales/pt-BR.json
@@ -93,7 +93,7 @@
"or": "ou"
},
"general": {
- "title": "Informações gerais",
+ "title": "Informações",
"name": "Nome",
"age": "Idade",
"race": "Raça",
diff --git a/public/screenshot.png b/public/screenshot.png
new file mode 100644
index 0000000..c7c9f27
Binary files /dev/null and b/public/screenshot.png differ
diff --git a/scripts/tests/package.json b/scripts/tests/package.json
index a359a49..9a63c11 100644
--- a/scripts/tests/package.json
+++ b/scripts/tests/package.json
@@ -7,6 +7,6 @@
},
"devDependencies": {
"@biomejs/biome": "1.8.3",
- "@types/bun": "^1.1.6"
+ "@types/bun": "^1.1.8"
}
}
diff --git a/tsconfig.json b/tsconfig.json
index b6439d8..4222e49 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,3 +1,3 @@
{
- "extends": "./packages/config/typescript/base.json"
+ "extends": "./packages/shared/src/config/typescript.json"
}
diff --git a/turbo.json b/turbo.json
index 8243b07..f77a25b 100644
--- a/turbo.json
+++ b/turbo.json
@@ -31,6 +31,7 @@
"db:push": {},
"db:seed": {},
"test": {},
+ "test:type": {},
"dev": {
"cache": false,
"persistent": true