Skip to content

Commit 5db8abf

Browse files
authored
🤖 Merge PR DefinitelyTyped#74871 fix(generic-functions): address "no-declare-current-package" by @hkleungai
1 parent de1900d commit 5db8abf

File tree

4 files changed

+10
-20
lines changed

4 files changed

+10
-20
lines changed

‎types/generic-functions/.eslintrc.json‎

Lines changed: 0 additions & 8 deletions
This file was deleted.

‎types/generic-functions/generic-functions-tests.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import g = require("generic-functions");
22

3-
var tvShow: Object = {
3+
var tvShow = {
44
seasons: 2,
55
show: "Better Call Saul",
66
};
Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
declare module "generic-functions" {
2-
function strcmp(str1: string, str2: string): boolean;
3-
function icstrcmp(str1: string, str2: string): boolean;
4-
function strendswith(str: string, suffix: string): boolean;
5-
function icstrendswith(str: string, suffix: string): boolean;
6-
function endswithdot(str: string): string;
7-
function println(message: string): void;
8-
function printlns(message: string[]): void;
9-
function objGetKeyByValue(object: Object, value: any): string;
10-
}
1+
export function strcmp(str1: string, str2: string): boolean;
2+
export function icstrcmp(str1: string, str2: string): boolean;
3+
export function strendswith(str: string, suffix: string): boolean;
4+
export function icstrendswith(str: string, suffix: string): boolean;
5+
export function endswithdot(str: string): string;
6+
export function println(message: string): void;
7+
export function printlns(message: string[]): void;
8+
export function objGetKeyByValue(object: any, value: any): string;

‎types/generic-functions/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "@types/generic-functions",
4-
"version": "0.0.9999",
4+
"version": "0.1.9999",
55
"projects": [
66
"https://github.com/stpettersens/genericFunctions-for-node#readme"
77
],

0 commit comments

Comments
 (0)