typescript: Remove skipLibCheck.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-04-02 16:34:43 -07:00
parent 6044b6328d
commit 815d9d4e28
3 changed files with 9 additions and 5 deletions

View File

@@ -255,7 +255,12 @@
"**/*.ts"
],
"rules": {
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/consistent-type-imports": [
"error",
{
"disallowTypeAnnotations": false
}
],
"@typescript-eslint/no-unused-vars": [
"error",
{

View File

@@ -5,7 +5,6 @@
"module": "commonjs",
"esModuleInterop": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true
}
}

6
typings.d.ts vendored
View File

@@ -1,4 +1,4 @@
declare module "electron" {
declare namespace Electron {
// https://github.com/electron/typescript-definitions/issues/170
interface IncomingMessage extends NodeJS.ReadableStream {}
}
@@ -29,12 +29,12 @@ interface ClipboardDecrypter {
interface ElectronBridge {
send_event: (eventName: string | symbol, ...args: unknown[]) => boolean;
on_event: (eventName: string, listener: ListenerType) => void;
on_event: (eventName: string, listener: (...args: any[]) => void) => void;
new_notification: (
title: string,
options: NotificationOptions,
dispatch: (type: string, eventInit: EventInit) => boolean,
) => NotificationData;
) => import("./app/renderer/js/notification").NotificationData;
get_idle_on_system: () => boolean;
get_last_active_on_system: () => number;
get_send_notification_reply_message_supported: () => boolean;