Skip to content

Commit a29b08e

Browse files
authored
Use Partial for boxStyle type
As described in #3263, the current type of `boxStyle` requires ALL CSS style properties to be added. The type should probably use a `Partial<T>` to allow for *some* properties to be added. Closes #3263
1 parent 1ce0760 commit a29b08e

File tree

1 file changed

+1
-1
lines changed
  • packages/react-google-maps-api-infobox/src

1 file changed

+1
-1
lines changed

packages/react-google-maps-api-infobox/src/types.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export interface InfoBoxOptions {
22
alignBottom?: boolean | undefined
33
boxClass?: string | undefined
4-
boxStyle?: CSSStyleDeclaration | undefined
4+
boxStyle?: Partial<CSSStyleDeclaration> | undefined
55
closeBoxMargin?: string | undefined
66
closeBoxURL?: string | undefined
77
content?: string | Node | undefined

0 commit comments

Comments
 (0)