Skip to content

Commit 4926481

Browse files
committed
fix: fix type errors
1 parent 97e06e8 commit 4926481

File tree

10 files changed

+26
-20
lines changed

10 files changed

+26
-20
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
"husky": "latest",
163163
"jest": "latest",
164164
"lint-staged": "latest",
165-
"lundle": "latest",
165+
"lundle": "^0.4.13",
166166
"minify-css.macro": "^1.0.6",
167167
"prettier": "latest",
168168
"react": "latest",

pnpm-lock.yaml

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/box.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ const padStyle: ResponsiveLazyProp<
129129
| Extract<keyof DashTokens["pad"], string | number>
130130
// @ts-expect-error
131131
| Extract<keyof DashTokens["pad"], string | number>[]
132-
// @ts-expect-error
133132
> =
134133
(padProp) =>
134+
// @ts-expect-error
135135
({ pad }) =>
136136
css`
137137
padding: ${Array.isArray(padProp)
@@ -183,10 +183,8 @@ const elevationStyle: ResponsiveLazyProp<
183183
string | number
184184
>
185185
> =
186-
(
187-
elevationProp
188-
// @ts-expect-error
189-
) =>
186+
(elevationProp) =>
187+
// @ts-expect-error
190188
({ elevation }) =>
191189
css`
192190
box-shadow: ${elevation[elevationProp]};
@@ -196,9 +194,9 @@ const radiusStyle: ResponsiveLazyProp<
196194
| Extract<keyof DashTokens["radius"], string | number>
197195
// @ts-expect-error
198196
| Extract<keyof DashTokens["radius"], string | number>[]
199-
// @ts-expect-error
200197
> =
201198
(radiusProp) =>
199+
// @ts-expect-error
202200
({ radius }) =>
203201
css`
204202
border-radius: ${Array.isArray(radiusProp)

src/grid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ const gapStyle: ResponsiveLazyProp<
145145
// @ts-expect-error
146146
Extract<keyof DashTokens["gap"], number | string>
147147
]
148-
// @ts-expect-error
149148
> =
150149
(gapProp: GapProp) =>
150+
// @ts-expect-error
151151
({ gap }) =>
152152
css`
153153
grid-gap: ${Array.isArray(gapProp)

types/cluster.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export declare const Cluster: import("forward-ref-as").ForwardRefExoticComponent
3535
export interface ClusterProps extends Omit<BoxProps, "display"> {
3636
/**
3737
* Reverses the direction of your cluster so that it lays out right-to-left
38+
*
3839
* @default false
3940
*/
4041
readonly reverse?: ResponsiveProp<boolean>;

types/column.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export interface ColumnProps extends BoxProps {
4545
>;
4646
/**
4747
* Reverses the direction of the column to bottom-to-top
48+
*
4849
* @default false
4950
*/
5051
readonly reverse?: ResponsiveProp<boolean>;

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export * from "./box";
2-
export * from "./column";
32
export * from "./cluster";
3+
export * from "./column";
44
export * from "./flex-item";
55
export * from "./grid";
66
export * from "./layer";

types/layout.d.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import * as React from "react";
21
import type {
32
Responsive,
4-
ResponsiveStyles,
53
ResponsiveLazyCallback,
4+
ResponsiveStyles,
65
} from "@dash-ui/responsive";
7-
import type { Styles, DashTokens, LazyValue } from "@dash-ui/styles";
6+
import type { DashTokens, LazyValue, Styles } from "@dash-ui/styles";
7+
import * as React from "react";
88
/**
99
* Returns the [responsive `styles()`](https://github.com/dash-ui/responsive)
1010
* used for creating responsive layout props.
@@ -18,6 +18,10 @@ export declare function useResponsiveStyles(): ResponsiveStyles<
1818
* A context provider which is only required if you intend on using
1919
* responsive props or a custom `styles()` instance.
2020
*
21+
* @param root0
22+
* @param root0.styles
23+
* @param root0.mediaQueries
24+
* @param root0.children
2125
* @example
2226
* <LayoutProvider
2327
* styles={styles}

types/row.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export interface RowProps extends BoxProps {
4242
>;
4343
/**
4444
* Reverses the direction of the row to left-to-right
45+
*
4546
* @default false
4647
*/
4748
readonly reverse?: ResponsiveProp<boolean>;

types/utils.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/**
22
* Adds a `px` unit to numeric values and returns non-numeric values as
33
* they are.
4-
* @param value The value you want to maybe add a unit to
4+
*
5+
* @param value - The value you want to maybe add a unit to
56
*/
67
export declare function unit<T extends unknown>(value: T): string | T;

0 commit comments

Comments
 (0)