Skip to content

Commit 3636163

Browse files
modify type check gate for compile time intelisense
1 parent 0cba843 commit 3636163

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/designto-token/wrappings/wrapping.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ export type WrappingToken =
3030
* @returns
3131
*/
3232
export function unwrappedChild(maybeWrapped: Widget): Widget {
33-
const wrapped =
33+
if (
3434
maybeWrapped instanceof SizedBox ||
3535
maybeWrapped instanceof Stretched ||
3636
maybeWrapped instanceof Positioned ||
3737
maybeWrapped instanceof OverflowBox ||
3838
maybeWrapped instanceof Rotation ||
3939
maybeWrapped instanceof Opacity ||
4040
maybeWrapped instanceof Blurred ||
41-
maybeWrapped instanceof ClipRRect;
42-
if (wrapped) {
41+
maybeWrapped instanceof ClipRRect
42+
) {
4343
return unwrappedChild(maybeWrapped.child);
4444
}
4545
return maybeWrapped;

0 commit comments

Comments
 (0)