Skip to content

[F] setExtension

function setExtension(
program,
target,
key,
value): void

Set extension on the given type(Same as calling @extension decorator)

Parameters

ParameterTypeDescription
programProgramTypeSpec program
targetTypeType
keystringExtension key
valueunknownExtension value

Returns

void