@@ -2,13 +2,14 @@ import {
22 ComplexSurroundingPairName ,
33 SimpleSurroundingPairName ,
44} from "@cursorless/common" ;
5+ import { unsafeKeys } from "../../../util/object" ;
56
67type IndividualDelimiterText = string | string [ ] ;
78
89export const delimiterToText : Record <
910 SimpleSurroundingPairName ,
1011 [ IndividualDelimiterText , IndividualDelimiterText ]
11- > = {
12+ > = Object . freeze ( {
1213 angleBrackets : [
1314 [ "</" , "<" ] ,
1415 [ ">" , "/>" ] ,
@@ -23,7 +24,7 @@ export const delimiterToText: Record<
2324 parentheses : [ [ "(" , "$(" ] , ")" ] ,
2425 singleQuotes : [ "'" , "'" ] ,
2526 squareBrackets : [ "[" , "]" ] ,
26- } ;
27+ } ) ;
2728
2829export const leftToRightMap : Record < string , string > = Object . fromEntries (
2930 Object . values ( delimiterToText ) ,
@@ -37,7 +38,7 @@ export const complexDelimiterMap: Record<
3738 ComplexSurroundingPairName ,
3839 SimpleSurroundingPairName [ ]
3940> = {
40- any : Object . keys ( delimiterToText ) ,
41+ any : unsafeKeys ( delimiterToText ) ,
4142 string : [ "singleQuotes" , "doubleQuotes" , "backtickQuotes" ] ,
4243 collectionBoundary : [
4344 "parentheses" ,
0 commit comments