Skip to content

Commit ee78ee0

Browse files
committed
chore(Masonry): fix lint errors in path.spec.ts
Signed-off-by: Justin Charles <[email protected]>
1 parent 12048d8 commit ee78ee0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

modules/masonry/src/brick/utils/path.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
type TBBox = { w: number; h: number };
2+
export type TInputUnion = TInputType1 | TInputType2 | TInputType3;
23

34
// Type definitions for input configurations
45
type TInputCommon = {

modules/masonry/src/brick/utils/spec/path.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { generatePath } from '../path';
2+
import type { TInputUnion } from '../path';
23

34
describe('Masonry: Brick > Path Generation', () => {
45
const testCases = [
@@ -118,7 +119,7 @@ describe('Masonry: Brick > Path Generation', () => {
118119

119120
testCases.forEach(({ name, input }) => {
120121
it(`generates path correctly: ${name}`, () => {
121-
const result = generatePath(input as any);
122+
const result = generatePath(input as TInputUnion);
122123
expect(typeof result.path).toBe('string');
123124
expect(result.path.length).toBeGreaterThan(0);
124125
});

0 commit comments

Comments
 (0)