Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
oamaok committed Nov 10, 2024
1 parent 61d5118 commit 3a14821
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 6 additions & 1 deletion src/kaiku.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,12 @@ type Render = <PropertiesT extends DefaultProps>(
rootElement: HTMLElement | SVGElement
) => void

type ClassNames = undefined | null | string | { [key: string]: boolean } | ClassNames[]
type ClassNames =
| undefined
| null
| string
| { [key: string]: boolean }
| ClassNames[]

//
// Generic utilities
Expand Down
8 changes: 2 additions & 6 deletions test/kaiku.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1948,9 +1948,7 @@ describe('kaiku', () => {

it('should handle array of classnames including `undefined`', async () => {
const App = () => {
return (
<div class={[undefined]}/>
)
return <div class={[undefined]} />
}

render(<App />, rootNode)
Expand All @@ -1959,9 +1957,7 @@ describe('kaiku', () => {

it('should handle array of classnames including `null`', async () => {
const App = () => {
return (
<div class={[null]}/>
)
return <div class={[null]} />
}

render(<App />, rootNode)
Expand Down

0 comments on commit 3a14821

Please sign in to comment.