MCPcopy Create free account
hub / github.com/coder/guts / enumDeclaration

Function enumDeclaration

typescript-engine/src/index.ts:246–256  ·  view source on GitHub ↗
(
  modifiers: readonly modifierKeys[] | readonly ts.Modifier[] | undefined,
  name: ts.Identifier | string,
  members: ts.EnumMember[],
)

Source from the content-addressed store, hash-verified

244}
245
246export function enumDeclaration(
247 modifiers: readonly modifierKeys[] | readonly ts.Modifier[] | undefined,
248 name: ts.Identifier | string,
249 members: ts.EnumMember[],
250): ts.EnumDeclaration {
251 return ts.factory.createEnumDeclaration(
252 modifiers?.map((m) => modifier(m)),
253 identifier(name),
254 members,
255 );
256}
257
258export function enumMember(
259 name: string,

Callers

nothing calls this directly

Calls 2

modifierFunction · 0.85
identifierFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…