Skip to content

Commit 79bc79c

Browse files
committed
fix types
1 parent 9a9cb4c commit 79bc79c

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

src/types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export interface IPageLibAsset {
1818
link: string;
1919
preLoaded: boolean;
2020
defer?: boolean;
21-
if?: boolean;
2221
}
2322

2423
export interface ICustomPageAsset {
@@ -32,7 +31,7 @@ export interface IPageFragmentConfig {
3231
name: string;
3332
chunked: boolean;
3433
clientAsync: boolean;
35-
attributes: { [name: string]: string, if: string };
34+
attributes: { [name: string]: string };
3635
source: string | undefined;
3736
}
3837

test/core.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,10 @@ describe('Module - Core', () => {
196196
name: 'test',
197197
attributes: {
198198
if: "false"
199-
}
199+
},
200+
chunked: true,
201+
clientAsync: false,
202+
source: undefined
200203
}],
201204
page: 'page'
202205
} as IPageLibConfiguration;

test/mock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ export const createPageLibConfiguration = (providedConfiguration?: object) => {
99
}],
1010
page: 'test-page',
1111
...providedConfiguration
12-
} as unknown as IPageLibConfiguration
12+
} as unknown as IPageLibConfiguration;
1313
};

test/puzzle.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('PuzzleJs', () => {
3333

3434
PuzzleJs.inject({module: Module});
3535

36-
expect((<any>PuzzleJs)['module'].m).to.eq(Module.m);
36+
expect((PuzzleJs as any)['module'].m).to.eq(Module.m);
3737
});
3838

3939
it('should register listeners', function () {

0 commit comments

Comments
 (0)