mirror of
https://github.com/tabler/tabler.git
synced 2026-08-29 13:21:29 +04:00
Fix all pnpm type-check warnings and restore lost Props typing (#2805)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: codecalm <1282324+codecalm@users.noreply.github.com>
This commit is contained in:
@@ -31,7 +31,7 @@ interface Props {
|
||||
footer?: boolean;
|
||||
footerButton?: boolean;
|
||||
footerButtons?: boolean;
|
||||
/** a ">" prefix pushes the element (and every following one) to the right — `right` is never reset */
|
||||
/** a right-angle-bracket prefix pushes the element (and every following one) to the right — `right` is never reset */
|
||||
footerElements?: string[];
|
||||
progress?: boolean;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ import Icon from '@ui/Icon.astro'
|
||||
---
|
||||
|
||||
<!-- BEGIN HEADER ACTIONS -->
|
||||
<button type="button" class="btn btn-primary" onclick="javascript:window.print();">
|
||||
<button type="button" class="btn btn-primary" onclick="window.print()">
|
||||
<Icon name="printer" /> Print Invoice
|
||||
</button>
|
||||
<!-- END HEADER ACTIONS -->
|
||||
|
||||
@@ -58,7 +58,7 @@ const typedId = 'typed'
|
||||
<script is:inline define:vars={{ typedId, strings }}>
|
||||
// @ts-nocheck — typedId is used in a template literal, which the type checker resolves independently of define:vars.
|
||||
function initTyped() {
|
||||
const typed = new Typed(`#${typedId}`, {
|
||||
new Typed(`#${typedId}`, {
|
||||
strings,
|
||||
typeSpeed: 100,
|
||||
backSpeed: 50,
|
||||
|
||||
Reference in New Issue
Block a user