Skip to content

Commit ae8f712

Browse files
committed
📝 add note
1 parent 985e3af commit ae8f712

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

helper/expr_string.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ const isInstanceOfString = isInstanceOf(String);
122122
* ```
123123
*/
124124
export const isExprString: Predicate<ExprString> = isObjectOf({
125+
// NOTE: `ExprString` has a different type in definition (primitive `string`) and implementation (`String`). Only checks `EXPR_STRING_MARK` existence.
125126
[EXPR_STRING_MARK]: isLiteralOf(1),
126127
}) as unknown as Predicate<ExprString>;
127128

0 commit comments

Comments
 (0)