Skip to content

Commit bac4d22

Browse files
authored
chore: add magic number comment (#2198) [ci skip]
1 parent 7cc09ca commit bac4d22

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/shared/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export const toTypeString = (value: unknown): string =>
8080
objectToString.call(value)
8181

8282
export const toRawType = (value: unknown): string => {
83+
// extract "RawType" from strings like "[object RawType]"
8384
return toTypeString(value).slice(8, -1)
8485
}
8586

0 commit comments

Comments
 (0)