MCPcopy Create free account
hub / github.com/andywer/postguard / isObjectType

Function isObjectType

src/typescript/objectish.ts:4–5  ·  view source on GitHub ↗
(type: ts.Type)

Source from the content-addressed store, hash-verified

2import ts from "typescript"
3
4const isObjectType = (type: ts.Type): type is ts.ObjectType =>
5 Boolean(type.flags & ts.TypeFlags.Object)
6
7const getTypeElementName = (element: ts.TypeElement) => {
8 const name = element.name

Callers 1

resolvePropertyTypesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected