Skip to contentSlop Block

no-unknown-type-aliases

Error

Do not alias unknown (TypeScript) or dynamic (Dart).

type ExternalValue = unknown;Do not alias unknown
// ast-grep-ignore: no-unknown-type-aliases-typescript

How to fix

An alias for unknown hides that the value is unchecked. Parse the value and name the parsed type.