DefinitelyTyped/types/generic-functions/index.d.ts
2017-03-24 14:27:52 -07: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;
}