Skip to content

Commit b1e8fcf

Browse files
authored
Allow WrapperKeepOpaque as a wrapper (#4424)
1 parent a1843c8 commit b1e8fcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/types-codec/src/utils/sanitize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interface SanitizeOptions {
88
type Mapper = (value: string, options?: SanitizeOptions) => string;
99

1010
const BOUNDED = ['BTreeMap', 'BTreeSet', 'HashMap', 'Vec'];
11-
const ALLOWED_BOXES = BOUNDED.concat(['Compact', 'DoNotConstruct', 'Int', 'Linkage', 'Range', 'RangeInclusive', 'Result', 'Option', 'UInt', 'WrapperOpaque']);
11+
const ALLOWED_BOXES = BOUNDED.concat(['Compact', 'DoNotConstruct', 'Int', 'Linkage', 'Range', 'RangeInclusive', 'Result', 'Option', 'UInt', 'WrapperKeepOpaque', 'WrapperOpaque']);
1212
const BOX_PRECEDING = ['<', '(', '[', '"', ',', ' ']; // start of vec, tuple, fixed array, part of struct def or in tuple
1313

1414
const mappings: Mapper[] = [

0 commit comments

Comments
 (0)