Skip to content

Commit b0f457c

Browse files
committed
Export more types
1 parent 17f9819 commit b0f457c

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed

src/formats/index.ts

+21
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,27 @@ import { inferSemver, JSONSemverFormat } from "./semver";
1919
import { inferFirestoreTimestamp, JSONFirestoreTimestampFormat } from "./firestoreTimestamp";
2020
import { inferJWT, JSONJWTStringFormat } from "./jwt";
2121

22+
export {
23+
JSONHostnameFormat,
24+
JSONUUIDFormat,
25+
JSONURIFormat,
26+
JSONPhoneNumberFormat,
27+
JSONLanguageFormat,
28+
JSONIPAddressFormat,
29+
JSONTLDFormat,
30+
JSONCountryFormat,
31+
JSONCurrencyFormat,
32+
JSONEmailFormat,
33+
JSONTimestampFormat,
34+
JSONDateTimeFormat,
35+
JSONFilesizeFormat,
36+
JSONJSONFormat,
37+
JSONJSONPointerFormat,
38+
JSONEmojiFormat,
39+
JSONSemverFormat,
40+
JSONJWTStringFormat,
41+
};
42+
2243
export type JSONStringFormat =
2344
| JSONHostnameFormat
2445
| JSONUUIDFormat

src/index.ts

+31-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,37 @@ import { JSONValueType } from "./@types";
22
import { inferFormat, inferObjectFormat } from "./formats";
33

44
export { JSONValueType };
5-
export { JSONStringFormat } from "./formats";
5+
export {
6+
JSONStringFormat,
7+
JSONObjectFormat,
8+
JSONHostnameFormat,
9+
JSONUUIDFormat,
10+
JSONURIFormat,
11+
JSONPhoneNumberFormat,
12+
JSONLanguageFormat,
13+
JSONIPAddressFormat,
14+
JSONTLDFormat,
15+
JSONCountryFormat,
16+
JSONCurrencyFormat,
17+
JSONEmailFormat,
18+
JSONTimestampFormat,
19+
JSONDateTimeFormat,
20+
JSONFilesizeFormat,
21+
JSONJSONFormat,
22+
JSONJSONPointerFormat,
23+
JSONEmojiFormat,
24+
JSONSemverFormat,
25+
JSONJWTStringFormat,
26+
} from "./formats";
27+
export {
28+
JSONNullType,
29+
JSONBoolType,
30+
JSONFloatType,
31+
JSONIntType,
32+
JSONStringType,
33+
JSONObjectType,
34+
JSONArrayType,
35+
} from "./@types";
636

737
export type InferOptions = {
838
returnValue?: "yes" | "no";

0 commit comments

Comments
 (0)