(name: modifierKeys | ts.Modifier)
| 15 | |
| 16 | type modifierKeys = FilterKeys<typeof ts.SyntaxKind, ModifierSyntaxKind>; |
| 17 | export function modifier(name: modifierKeys | ts.Modifier): Modifier { |
| 18 | if (typeof name !== "string") { |
| 19 | return name; |
| 20 | } |
| 21 | |
| 22 | const x = ts.SyntaxKind[name]; |
| 23 | |
| 24 | return ts.factory.createModifier(x); |
| 25 | } |
| 26 | |
| 27 | export function identifier(name: string | ts.Identifier): ts.Identifier { |
| 28 | if (typeof name !== "string") { |
no outgoing calls
no test coverage detected
searching dependent graphs…