chore: silence storybook errors

feat/type-attributes
Tomáš Mládek 2023-04-25 19:48:16 +02:00
parent 8b7a964f4a
commit d2d9ebe54a
7 changed files with 22 additions and 13 deletions

View File

@ -17,7 +17,8 @@ const meta: Meta<BlobPreview> = {
onLoaded: {
action: "loaded",
},
},
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} as any,
};
export default meta;
@ -32,8 +33,8 @@ export const ImageVertical: Story = {
};
export const Audio: Story = {
args: {address: audioAddress}
}
args: { address: audioAddress },
};
export const Video: Story = {
args: { address: videoAddress },

View File

@ -30,7 +30,8 @@ const meta: Meta<BlobViewer> = {
},
},
},
decorators: [() => RouterDecorator],
// eslint-disable-next-line @typescript-eslint/no-explicit-any
decorators: [() => RouterDecorator as any],
};
export default meta;

View File

@ -20,7 +20,8 @@ const meta: Meta<Gallery> = {
videoVerticalAddress,
],
},
decorators: [() => RouterDecorator],
// eslint-disable-next-line @typescript-eslint/no-explicit-any
decorators: [() => RouterDecorator as any],
};
export default meta;

View File

@ -11,10 +11,12 @@ const meta: Meta<Selector> = {
action: "input",
},
onFocus: {
action: "focus"
}
},
decorators: [() => RouterDecorator], // due to upobject link in selected state
action: "focus",
},
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} as any,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
decorators: [() => RouterDecorator as any], // due to upobject link in selected state
};
export default meta;

View File

@ -10,7 +10,8 @@ const meta: Meta<Surface> = {
parameters: {
layout: "fullscreen",
},
decorators: [() => FullscreenDecorator, () => RouterDecorator],
// eslint-disable-next-line @typescript-eslint/no-explicit-any
decorators: [() => FullscreenDecorator as any, () => RouterDecorator as any],
};
export default meta;

View File

@ -21,7 +21,8 @@ const meta: Meta<UpObject> = {
onResolved: {
action: "resolved",
},
},
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} as any,
};
export default meta;
@ -40,7 +41,8 @@ export const Link: Story = {
args: {
link: true,
},
decorators: [() => RouterDecorator],
// eslint-disable-next-line @typescript-eslint/no-explicit-any
decorators: [() => RouterDecorator as any],
};
export const Banner: Story = {

View File

@ -19,7 +19,8 @@ const meta: Meta<UpObjectCard> = {
type: "string",
},
},
decorators: [() => RouterDecorator],
// eslint-disable-next-line @typescript-eslint/no-explicit-any
decorators: [() => RouterDecorator as any],
};
export default meta;