Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 45d293e

Browse files
koddssonmuan
andauthored
use union type for nullable types
Co-Authored-By: Mu-An 慕安 <[email protected]>
1 parent ee39326 commit 45d293e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export default class ImageCropElement extends HTMLElement {
2-
src?: string
2+
src: string || null
33
loaded?: boolean
44
}

0 commit comments

Comments
 (0)