Merge pull request #28760 from overleaf/dp-hackathon-knip

Add Knip and remove a bunch of unused code

GitOrigin-RevId: 42ab99fc65973c883d2361e0027e7181767e714e
This commit is contained in:
David
2025-10-15 08:05:57 +00:00
committed by Copybot
parent 2c7c0caf07
commit 584572bb40
43 changed files with 600 additions and 672 deletions
@@ -27,19 +27,3 @@ type AbsoluteWidth = {
}
export type WidthSelection = PercentageWidth | CustomWidth | AbsoluteWidth
export const isPercentageWidth = (
width: WidthSelection
): width is PercentageWidth => {
return width.unit === '%'
}
export const isAbsoluteWidth = (
width: WidthSelection
): width is AbsoluteWidth => {
return (ABSOLUTE_UNITS as readonly string[]).includes(width.unit)
}
export const isCustomWidth = (width: WidthSelection): width is CustomWidth => {
return width.unit === 'custom'
}