From 5db8abf3605a5f66d0028090d2c678c628e5aabe Mon Sep 17 00:00:00 2001 From: Jimmy Leung <43258070+hkleungai@users.noreply.github.com> Date: Sat, 11 Apr 2026 21:38:25 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#74871=20fix(generi?= =?UTF-8?q?c-functions):=20address=20"no-declare-current-package"=20by=20@?= =?UTF-8?q?hkleungai?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/generic-functions/.eslintrc.json | 8 -------- .../generic-functions-tests.ts | 2 +- types/generic-functions/index.d.ts | 18 ++++++++---------- types/generic-functions/package.json | 2 +- 4 files changed, 10 insertions(+), 20 deletions(-) delete mode 100644 types/generic-functions/.eslintrc.json diff --git a/types/generic-functions/.eslintrc.json b/types/generic-functions/.eslintrc.json deleted file mode 100644 index 47fdfab467f7a4..00000000000000 --- a/types/generic-functions/.eslintrc.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "rules": { - "@definitelytyped/no-declare-current-package": "off", - "@definitelytyped/no-single-declare-module": "off", - "@typescript-eslint/no-unsafe-function-type": "off", - "@typescript-eslint/no-wrapper-object-types": "off" - } -} diff --git a/types/generic-functions/generic-functions-tests.ts b/types/generic-functions/generic-functions-tests.ts index 710f71d6286e5b..83b644258e389e 100644 --- a/types/generic-functions/generic-functions-tests.ts +++ b/types/generic-functions/generic-functions-tests.ts @@ -1,6 +1,6 @@ import g = require("generic-functions"); -var tvShow: Object = { +var tvShow = { seasons: 2, show: "Better Call Saul", }; diff --git a/types/generic-functions/index.d.ts b/types/generic-functions/index.d.ts index f868b69c39b5dd..00e81b469983cf 100644 --- a/types/generic-functions/index.d.ts +++ b/types/generic-functions/index.d.ts @@ -1,10 +1,8 @@ -declare module "generic-functions" { - function strcmp(str1: string, str2: string): boolean; - function icstrcmp(str1: string, str2: string): boolean; - function strendswith(str: string, suffix: string): boolean; - function icstrendswith(str: string, suffix: string): boolean; - function endswithdot(str: string): string; - function println(message: string): void; - function printlns(message: string[]): void; - function objGetKeyByValue(object: Object, value: any): string; -} +export function strcmp(str1: string, str2: string): boolean; +export function icstrcmp(str1: string, str2: string): boolean; +export function strendswith(str: string, suffix: string): boolean; +export function icstrendswith(str: string, suffix: string): boolean; +export function endswithdot(str: string): string; +export function println(message: string): void; +export function printlns(message: string[]): void; +export function objGetKeyByValue(object: any, value: any): string; diff --git a/types/generic-functions/package.json b/types/generic-functions/package.json index dd700eb9df3917..2093ac585f4986 100644 --- a/types/generic-functions/package.json +++ b/types/generic-functions/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/generic-functions", - "version": "0.0.9999", + "version": "0.1.9999", "projects": [ "https://github.com/stpettersens/genericFunctions-for-node#readme" ],