From 7902131b6632d87eb89539e0947939cd8b5d03be Mon Sep 17 00:00:00 2001 From: Sibiraj <20282546+sibiraj-s@users.noreply.github.com> Date: Sun, 12 May 2024 15:57:43 +0530 Subject: [PATCH] chore: cleanup types --- projects/ngx-editor/schema/marks.ts | 4 ++-- tsconfig.json | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/projects/ngx-editor/schema/marks.ts b/projects/ngx-editor/schema/marks.ts index d48a635b..e7ddbc82 100644 --- a/projects/ngx-editor/schema/marks.ts +++ b/projects/ngx-editor/schema/marks.ts @@ -51,13 +51,13 @@ const strong: MarkSpec = { // tags with a font-weight normal. { tag: 'b', - getAttrs: (dom: HTMLElement): Record => { + getAttrs: (dom: HTMLElement) => { return dom.style.fontWeight !== 'normal' && null; }, }, { style: 'font-weight', - getAttrs: (value: string): Record => { + getAttrs: (value: string) => { return (/^(?:bold(?:er)?|[5-9]\d{2,})$/).test(value) && null; }, }, diff --git a/tsconfig.json b/tsconfig.json index 87c6d9af..2edb22a8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,6 @@ "compileOnSave": false, "compilerOptions": { "outDir": "./dist/out-tsc", - "forceConsistentCasingInFileNames": true, "strict": false, "noImplicitOverride": true, "noPropertyAccessFromIndexSignature": true,