Skip to content

Commit bee2075

Browse files
committed
fix: add ref to ReactQRCodeProps
1 parent 601cd2e commit bee2075

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • packages/react-qr-code/src/types

packages/react-qr-code/src/types/lib.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ export interface ReactQRCodeRef {
109109
}
110110

111111
export interface ReactQRCodeProps {
112+
ref?: React.Ref<ReactQRCodeRef>
112113
/**
113114
* The value to encode into the QR Code. An array of strings can be passed in
114115
* to represent multiple segments to further optimize the QR Code.

0 commit comments

Comments
 (0)