Skip to content

Commit 9fc3524

Browse files
authored
export types in fxp.d.ts for better module usability (#744)
1 parent 5bcf183 commit 9fc3524

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/fxp.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
type X2jOptions = {
1+
export type X2jOptions = {
22
/**
33
* Preserve the order of tags in resulting JS object
44
*
@@ -218,14 +218,14 @@ type X2jOptions = {
218218
captureMetaData?: boolean;
219219
};
220220

221-
type strnumOptions = {
221+
export type strnumOptions = {
222222
hex: boolean;
223223
leadingZeros: boolean,
224224
skipLike?: RegExp,
225225
eNotation?: boolean
226226
}
227227

228-
type validationOptions = {
228+
export type validationOptions = {
229229
/**
230230
* Whether to allow attributes without value
231231
*
@@ -241,7 +241,7 @@ type validationOptions = {
241241
unpairedTags?: string[];
242242
};
243243

244-
type XmlBuilderOptions = {
244+
export type XmlBuilderOptions = {
245245
/**
246246
* Give a prefix to the attribute name in the resulting JS object
247247
*
@@ -395,7 +395,7 @@ type XmlBuilderOptions = {
395395

396396
type ESchema = string | object | Array<string|object>;
397397

398-
type ValidationError = {
398+
export type ValidationError = {
399399
err: {
400400
code: string;
401401
msg: string,

0 commit comments

Comments
 (0)