Merge pull request #591 from daviwil/fix-path-parameter-decorators
Fix application of intrinsic decorators to properties and parameters
This commit is contained in:
Коммит
f8ca46757b
|
@ -55,6 +55,11 @@ export function getIntrinsicType(program: Program, target: Type | undefined): st
|
|||
return undefined;
|
||||
}
|
||||
|
||||
export function isStringType(program: Program, target: Type): boolean {
|
||||
const intrinsicType = getIntrinsicType(program, target);
|
||||
return intrinsicType !== undefined && intrinsicType === "string";
|
||||
}
|
||||
|
||||
const numericTypesKey = Symbol();
|
||||
export function numeric(program: Program, target: Type) {
|
||||
if (!isIntrinsic(program, target)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче