feat(config): add useragents.d.ts

Signed-off-by: hansputera <hanifdwyputrasembiring@gmail.com>
This commit is contained in:
hansputera
2022-03-05 22:16:40 +07:00
parent 8c37b86ad8
commit 2f431ee70e
5 changed files with 10 additions and 23 deletions

View File

@@ -10,8 +10,8 @@ Video TikTok Downloader using 🧰 NodeJS with Watermark and Non-Watermark!
## Development 👷
- Clone/fork into a directory you want.
- Install all dependencies correctly (`pnpm install`)
- Ran `pnpm run dev` (default web port: `3000`)
- Install all dependencies correctly (`yarn install`)
- Ran `yarn dev` (default web port: `3000`)
# Configuration 🔑

View File

@@ -5,7 +5,8 @@
"files": [
"eslint.js",
"eslint.typescript.js",
"useragents.js"
"useragents.js",
"useragents.d.ts"
],
"dependencies": {
"eslint-config-google": "^0.14.0"

5
packages/config/useragents.d.ts vendored Normal file
View File

@@ -0,0 +1,5 @@
declare const _default: {
random: () => string;
}
export = _default;

View File

@@ -14,6 +14,7 @@
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"forceConsistentCasingInFileNames": true
"resolveJsonModule": true
},
"exclude": ["node_modules", "dist"]
}

View File

@@ -1,20 +0,0 @@
{
"compilerOptions": {
"allowJs": true,
"noEmit": true,
"strict": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"outDir": "dist",
"target": "ES2016",
"module": "CommonJS",
"removeComments": true,
"esModuleInterop": true,
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"forceConsistentCasingInFileNames": true,
"experimentalDecorators": true
},
"exclude": ["node_modules", "dist"]
}