forked from strdr4605/mockingcase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
30 lines (27 loc) · 956 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Type definitions for mockingcase 1.8
// Project: https://github.com/strdr4605/mockingcase
// Definitions by: Dragoș Străinu https://github.com/strdr4605
declare module "mockingcase" {
interface Options {
random?: boolean;
onlyLetters?: boolean;
firstUpper?: boolean;
}
export = mockingcase;
function mockingcase(input: string | string[], options?: Options): string;
namespace mockingcase {
type MockingCase = (
input: string,
options?: Options,
) => string & {
log: (input: string, options?: Options) => void;
config: (defaultOptions: Options) => MockingCase;
overrideString: () => MockingCase;
overrideConsole: () => MockingCase;
};
export function log(input: string | string[], options?: Options): void;
export function config(defaultOptions: Options): void;
export function overrideString(): MockingCase;
export function overrideConsole(): MockingCase;
}
}