It's ok to run decorators on non-templated models
This commit is contained in:
Родитель
47866d53d8
Коммит
ca96f9cf3b
|
@ -538,8 +538,9 @@ export function createChecker(program: Program) {
|
|||
};
|
||||
|
||||
if (
|
||||
instantiatingThisTemplate &&
|
||||
templateInstantiation.every((t) => t.kind !== "TemplateParameter")
|
||||
(instantiatingThisTemplate &&
|
||||
templateInstantiation.every((t) => t.kind !== "TemplateParameter")) ||
|
||||
node.templateParameters.length === 0
|
||||
) {
|
||||
createType(type);
|
||||
}
|
||||
|
@ -605,9 +606,6 @@ export function createChecker(program: Program) {
|
|||
return type;
|
||||
}
|
||||
|
||||
const links = getSymbolLinks(node.symbol!);
|
||||
links.type = assignmentType;
|
||||
|
||||
return assignmentType;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче