DefinitelyTyped/generic-functions/generic-functions.d.ts
Sam Saint-Pettersen e653cba45e Type definitions and tests for generic-functions (#9309)
* Create generic-functions.d.ts

* Create genetic-functions-tests.ts

* Update generic-functions.d.ts
2016-05-15 02:03:44 +09:00

16 lines
739 B
TypeScript

// Type definitions for generic-functions
// Project: https://github.com/stpettersens/generic-functions
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
// Definitions: https://github.com/definitelytyped/DefinitelyTyped
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;
}