mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 20:36:13 +01:00
chore(monorepo/server): integrate type definitions
This commit is contained in:
@@ -20,5 +20,8 @@
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"turndown": "7.2.0"
|
||||
}
|
||||
}
|
||||
|
||||
20
apps/server/tsconfig.json
Normal file
20
apps/server/tsconfig.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "NodeNext",
|
||||
"declaration": false,
|
||||
"sourceMap": true,
|
||||
"outDir": "./build",
|
||||
"strict": true,
|
||||
"noImplicitAny": true,
|
||||
"resolveJsonModule": true,
|
||||
"lib": ["ES2023"],
|
||||
"downlevelIteration": true,
|
||||
"skipLibCheck": true,
|
||||
"esModuleInterop": true,
|
||||
"verbatimModuleSyntax": true
|
||||
},
|
||||
"include": [ "./src/**/*.ts" ],
|
||||
"files": [
|
||||
"./src/types.d.ts",
|
||||
]
|
||||
}
|
||||
32
apps/server/types.d.ts
vendored
Normal file
32
apps/server/types.d.ts
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* This file contains type definitions for libraries that did not have one
|
||||
* in its library or in `@types/*` packages.
|
||||
*/
|
||||
|
||||
declare module "unescape" {
|
||||
function unescape(str: string, type?: string): string;
|
||||
export default unescape;
|
||||
}
|
||||
|
||||
declare module "html2plaintext" {
|
||||
function html2plaintext(htmlText: string): string;
|
||||
export default html2plaintext;
|
||||
}
|
||||
|
||||
declare module "normalize-strings" {
|
||||
function normalizeString(string: string): string;
|
||||
export default normalizeString;
|
||||
}
|
||||
|
||||
declare module "@joplin/turndown-plugin-gfm" {
|
||||
import TurndownService from "turndown";
|
||||
namespace gfm {
|
||||
function gfm(service: TurndownService): void;
|
||||
}
|
||||
export default gfm;
|
||||
}
|
||||
|
||||
declare module "is-animated" {
|
||||
function isAnimated(buffer: Buffer): boolean;
|
||||
export default isAnimated;
|
||||
}
|
||||
Reference in New Issue
Block a user