-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ts
44 lines (38 loc) · 828 Bytes
/
index.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import * as ERRORS from "./errors";
import { CONVENTIONS } from "./constants";
import { IS_OPERATIONS } from "./is.operations";
import { getConvention } from "./get.convention";
import { FROM_OPERATIONS } from "./from.operations";
export { ConvConv, Convention } from "./types";
export default {
getConvention,
CONVENTIONS,
...ERRORS,
...IS_OPERATIONS,
...FROM_OPERATIONS,
};
export { getConvention, CONVENTIONS };
export const {
ConvConvError,
ConventionNotFoundError,
ConventionViolationError,
} = ERRORS;
export const {
isCamel,
isConvention,
isKebab,
isPascal,
isScreamingKebab,
isScreamingSnake,
isSnake,
} = IS_OPERATIONS;
export const {
autoFrom,
fromCamel,
fromConvention,
fromKebab,
fromPascal,
fromScreamingKebab,
fromScreamingSnake,
fromSnake,
} = FROM_OPERATIONS;