File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
modules/masonry/src/brick/utils Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 11type TBBox = { w : number ; h : number } ;
2+ export type TInputUnion = TInputType1 | TInputType2 | TInputType3 ;
23
34// Type definitions for input configurations
45type TInputCommon = {
Original file line number Diff line number Diff line change 11import { generatePath } from '../path' ;
2+ import type { TInputUnion } from '../path' ;
23
34describe ( '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 } ) ;
You can’t perform that action at this time.
0 commit comments