whoami1337 hace 1 año
commit
45a5780385
Se han modificado 8 ficheros con 47 adiciones y 0 borrados
  1. 3 0
      .gitignore
  2. 3 0
      .vscode/settings.json
  3. 12 0
      package.json
  4. BIN
      qf-types-v1.0.0.tgz
  5. 1 0
      src/index.ts
  6. 9 0
      src/interfaces/IUsers.ts
  7. 11 0
      tsconfig.json
  8. 8 0
      yarn.lock

+ 3 - 0
.gitignore

@@ -0,0 +1,3 @@
+node_modules
+dist
+.DS_STORE

+ 3 - 0
.vscode/settings.json

@@ -0,0 +1,3 @@
+{
+    "nuxt.isNuxtApp": false
+}

+ 12 - 0
package.json

@@ -0,0 +1,12 @@
+{
+  "name": "qf-types",
+  "version": "1.0.0",
+  "description": "Global package for about interfaces, types.",
+  "main": "index.ts",
+  "repository": "https://git.ali33.ru/s4z/qf-types.git",
+  "author": "0xJS",
+  "license": "MIT",
+  "devDependencies": {
+    "typescript": "^5.0.4"
+  }
+}

BIN
qf-types-v1.0.0.tgz


+ 1 - 0
src/index.ts

@@ -0,0 +1 @@
+import './interfaces/IUsers';

+ 9 - 0
src/interfaces/IUsers.ts

@@ -0,0 +1,9 @@
+export interface User {
+    id: number;
+    name: string;
+    email: string;
+}
+
+export type UserRole = 'admin' | 'user';
+
+// Export any other interfaces or types you need

+ 11 - 0
tsconfig.json

@@ -0,0 +1,11 @@
+{
+    "compilerOptions": {
+      "declaration": true,
+      "outDir": "./dist",
+      "module": "commonjs",
+      "target": "es6",
+      "strict": true
+    },
+    "include": ["src"]
+  }
+  

+ 8 - 0
yarn.lock

@@ -0,0 +1,8 @@
+# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
+# yarn lockfile v1
+
+
+typescript@^5.0.4:
+  version "5.0.4"
+  resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.4.tgz#b217fd20119bd61a94d4011274e0ab369058da3b"
+  integrity sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==