|
|
|
@ -44,18 +44,6 @@ function isPrimitiveLike(t: dom.Type): boolean { |
|
|
|
|
return intrinsicKinds.has(kind || ""); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function normalizeAnonymousInterface(t: dom.Type): dom.Type { |
|
|
|
|
if ( |
|
|
|
|
(t as dom.InterfaceDeclaration).kind === "interface" && |
|
|
|
|
!(t as dom.InterfaceDeclaration).name |
|
|
|
|
) { |
|
|
|
|
return dom.create.objectType( |
|
|
|
|
(t as dom.InterfaceDeclaration).members as dom.PropertyDeclaration[] |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
return t; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Property name collision resolution using predicate IRI mapping
|
|
|
|
|
const predicateIriByProp = new WeakMap<dom.PropertyDeclaration, string>(); |
|
|
|
|
/** |
|
|
|
|