Skip to content

Commit 658e7e5

Browse files
committed
Export file in main index file
1 parent d8c850b commit 658e7e5

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

src/file/file.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { Styles } from "./styles";
1919
import { ExternalStylesFactory } from "./styles/external-styles-factory";
2020
import { DefaultStylesFactory } from "./styles/factory";
2121

22-
type ISectionOptions = {
22+
export type ISectionOptions = {
2323
readonly headers?: {
2424
readonly default?: Header;
2525
readonly first?: Header;
@@ -34,7 +34,7 @@ import { DefaultStylesFactory } from "./styles/factory";
3434
readonly children: readonly FileChild[];
3535
};
3636

37-
class File {
37+
export class File {
3838
// eslint-disable-next-line functional/prefer-readonly-type
3939
private currentRelationshipId: number = 1;
4040

@@ -307,12 +307,3 @@ import { DefaultStylesFactory } from "./styles/factory";
307307
return this.fontWrapper;
308308
}
309309
}
310-
311-
export {
312-
File,
313-
}
314-
315-
export type {
316-
ISectionOptions,
317-
IPropertiesOptions
318-
}

src/file/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ export * from "./vertical-align";
2121
export * from "./checkbox";
2222
export * from "./fonts";
2323
export * from "./textbox";
24+
export { type IPropertiesOptions } from "./core-properties";

0 commit comments

Comments
 (0)