@@ -45,15 +45,15 @@ const fieldSection = (hdepth: md.HeadingDepth) => (field: sf.TableTypeField) =>
4545 Rd . map ( ( heading ) => md . listItem ( [ heading , field . description ] ) )
4646 ) ;
4747
48- const mappedTypeSectionTitle = ( mt : sf . TableTypeMappedType ) => ( api : sf . API ) =>
49- pipe (
50- Comp . fullTypeMD ( mt . valueType ) ( api ) ,
51- RNEA . concat < md . PhrasingContent > ( [
52- md . text ( ' [ ' ) ,
48+ const mappedTypeSectionTitle =
49+ ( mt : sf . TableTypeMappedType ) =>
50+ ( api : sf . API ) : RNEA . ReadonlyNonEmptyArray < md . PhrasingContent > =>
51+ [
52+ md . text ( '[key: ' ) ,
5353 Comp . singleTypeMD ( mt . keyType ) ( api ) ,
54- md . text ( ']' ) ,
55- ] )
56- ) ;
54+ md . text ( '] ' ) ,
55+ ... Comp . fullTypeMD ( mt . valueType ) ( api ) ,
56+ ] ;
5757
5858const mappedTypeListItem =
5959 ( hdepth : md . HeadingDepth ) => ( mt : sf . TableTypeMappedType ) =>
@@ -107,7 +107,7 @@ const allMappedTypeKeys = memoize(({ name }: sf.TableType) => name)(
107107
108108const tableTypePageUniqueSection = ( tt : sf . TableType ) =>
109109 pipe (
110- tableTypeInfoSection ( 2 ) ( tt ) ,
110+ tableTypeInfoSection ( 3 ) ( tt ) ,
111111 Rd . map ( ( info ) => md . combinedFragments ( [ info , tt . guide ] ) )
112112 ) ;
113113
@@ -222,7 +222,7 @@ export const page =
222222 usageList (
223223 tableTypes ,
224224 allMappedTypeKeys ,
225- 'Table Types that use this type as index '
225+ 'Table Types that use this type as key '
226226 ) ,
227227 tp . supertype === sf . TABLE_TYPE_SYMBOL
228228 ? tableTypePageUniqueSection ( tp ) ( api )
0 commit comments