MCPcopy
hub / github.com/nestjs/swagger / isString

Function isString

lib/plugin/utils/ast-utils.ts:64–66  ·  view source on GitHub ↗
(type: Type)

Source from the content-addressed store, hash-verified

62}
63
64export function isString(type: Type) {
65 return hasFlag(type, TypeFlags.String);
66}
67
68export function isStringLiteral(type: Type) {
69 return hasFlag(type, TypeFlags.StringLiteral) && !type.isUnion();

Callers 10

mergePluginOptionsFunction · 0.90
getTypeReferenceAsStringFunction · 0.90
getSchemaPathFunction · 0.90
parseCommentDocValueFunction · 0.85
createSchemaMetadataMethod · 0.85
mapArrayTypeMethod · 0.85
ApiSecurityFunction · 0.85

Calls 1

hasFlagFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…