Skip to main content
Version: Next 🚧

[F] checkDuplicateTypeName

function checkDuplicateTypeName(
program,
type,
name,
existing): void

Check the given name is not already specific in the existing map. Report a diagnostic if it is.

Parameters

ParameterTypeDescription
programProgramProgram
typeTypeType with the name to check
namestringName to check
existingundefined | Record<string, unknown>Existing map of name

Returns

void