setDiscussableKeyword

Function

Adds or removes CANNOT_DISCUSS type keyword and returns the updated list

  • setDiscussableKeyword(typeKeywords: string[], discussable: boolean) : string[]

Parameters

Parameter Type Default Notes
typeKeywords Required string[]
discussable Required boolean

Returns

updated list of type keywords

string[]

Function defined in common/src/discussions/utils.ts:35