diff --git a/@types/.gitignore b/@types/.gitignore new file mode 100644 index 0000000..7ae51ab --- /dev/null +++ b/@types/.gitignore @@ -0,0 +1,10 @@ +.DS_Store +.idea +*.log +tmp/ + +node_modules/ +npm-debug.log* +*.tsbuildinfo +.npm +.eslintcache diff --git a/@types/index.d.ts b/@types/index.d.ts new file mode 100644 index 0000000..7904d60 --- /dev/null +++ b/@types/index.d.ts @@ -0,0 +1,6 @@ + +declare module 'codedown-languages' { + type SettingsItem = + "boolean" + | "string"; +} diff --git a/@types/package-lock.json b/@types/package-lock.json new file mode 100644 index 0000000..5c7c42e --- /dev/null +++ b/@types/package-lock.json @@ -0,0 +1,28 @@ +{ + "name": "@types/codedown-languages", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@types/codedown-languages", + "version": "1.0.0", + "devDependencies": { + "typescript": "^5.0.0" + } + }, + "node_modules/typescript": { + "version": "5.6.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.2.tgz", + "integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + } + } +} diff --git a/@types/package.json b/@types/package.json new file mode 100644 index 0000000..f2cf95b --- /dev/null +++ b/@types/package.json @@ -0,0 +1,14 @@ +{ + "name": "@types/codedown-languages", + "version": "1.0.0", + "description": "TypeScript definitions for codedown-languages", + "main": "", + "types": "index.d.ts", + "scripts": { + "test": "tsc" + }, + "dependencies": {}, + "devDependencies": { + "typescript": "^5.0.0" + } +} diff --git a/@types/tsconfig.json b/@types/tsconfig.json new file mode 100644 index 0000000..30e8377 --- /dev/null +++ b/@types/tsconfig.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": ["index.d.ts"] +}