ts-morph#InterfaceDeclaration TypeScript Examples
The following examples show how to use
ts-morph#InterfaceDeclaration.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: extract-dom-types.ts From SimpleWebAuthn with MIT License | 6 votes |
unresolvedNodes = new Set<InterfaceDeclaration | TypeAliasDeclaration>(
types.map(type => {
const node = domSourceFile.getInterface(type) ?? domSourceFile.getTypeAlias(type);
if (!node) {
throw new Error(`${type} does not refer to an interface or type alias`);
}
return node;
}),
)
Example #2
Source File: extract-dom-types.ts From SimpleWebAuthn with MIT License | 5 votes |
resolvedNodes = new Set<InterfaceDeclaration | TypeAliasDeclaration>()