refactor(content-blog): clean up type definitions; in-code documentation (#6922)

* refactor(content-blog): clean up type definitions; in-code documentation

* add doc
This commit is contained in:
Joshua Chen 2022-03-16 19:36:57 +08:00 committed by GitHub
parent 46b1027c4a
commit 8d1c1954c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 509 additions and 240 deletions

View file

@ -70,8 +70,8 @@ export type TaggedItemGroup<Item> = {
* override the other
*/
export function groupTaggedItems<Item>(
items: Item[],
getItemTags: (item: Item) => Tag[],
items: readonly Item[],
getItemTags: (item: Item) => readonly Tag[],
): Record<string, TaggedItemGroup<Item>> {
const result: Record<string, TaggedItemGroup<Item>> = {};