Skip to content

Commit

Permalink
StringifyBoolean replaces string union literal
Browse files Browse the repository at this point in the history
  • Loading branch information
Stassi committed Nov 25, 2024
1 parent 4bcf5b1 commit a53625d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/leaf/map/fullscreen/control/anchor/update-title.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { type ControlAnchorAssign } from './anchor'

import { type ToggleableState } from '@stassi/leaf'

export type ControlAnchorTitleStates = Record<'false' | 'true', string>
type StringifyBoolean<T extends boolean> = `${T}`
export type ControlAnchorTitleStates = Record<StringifyBoolean<boolean>, string>
export type UpdateControlAnchorTitleAnchorOptions = {
assign: ControlAnchorAssign
titleStates: ControlAnchorTitleStates
Expand Down

0 comments on commit a53625d

Please sign in to comment.