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

Function aliasDecl

typescript-engine/src/index.ts:127–140  ·  view source on GitHub ↗
(
  modifiers: readonly modifierKeys[] | readonly ts.Modifier[] | undefined,
  name: ts.Identifier | string,
  typeParameters: ts.TypeParameterDeclaration[] | undefined,
  type: ts.TypeNode
)

Source from the content-addressed store, hash-verified

125}
126
127export function aliasDecl(
128 modifiers: readonly modifierKeys[] | readonly ts.Modifier[] | undefined,
129 name: ts.Identifier | string,
130 typeParameters: ts.TypeParameterDeclaration[] | undefined,
131 type: ts.TypeNode
132): ts.TypeAliasDeclaration {
133 // (modifiers: readonly ModifierLike[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
134 return ts.factory.createTypeAliasDeclaration(
135 modifiers?.map((m) => modifier(m)),
136 identifier(name),
137 typeParameters, // Generics
138 type // Type
139 );
140}
141
142export function typeParameterDeclaration(
143 modifiers: readonly modifierKeys[] | readonly ts.Modifier[] | undefined,

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…